PDA

View Full Version : How to Slow down counter (setinterval?)


wownflutter
03-07-2006, 10:56 PM
I have a dynamic text field counter.

I need to slow it way down...

Frame rate isnt affecting it.

Can you help me?

if (theNumber<50145395) {
theNumber = theNumber+theChange;
if (theNumber>50) {
theChange = 19;
}
if (theNumber>100) {
theChange = 51;
}
if (theNumber>200) {
theChange = 101;
}
if (theNumber>500) {
theChange = 420;
}
if (theNumber>1000) {
theChange = 1733;
_root.numbers.comma1._alpha = 100;
}

if (theNumber>25000) {
theChange = 8718;

}
if (theNumber>72803) {
theChange = 24501;
}
if (theNumber>100000) {
theChange = 16312;
_root.numbers.comma2._alpha = 100;
}
if (theNumber>204033) {
theChange = 2211328;

}
if (theNumber>504033) {
theChange = 101027;

}
if (theNumber>10124501) {
theChange = 3;
}
if (theNumber>10125395) {
theChange = 1;
}
}
else if (theNumber>50145395){
theChange = 1;
}

wownflutter
03-08-2006, 05:45 AM
Is there a way around this fast ticker problem?

Simply put, this swf is embedded as well as others into the same html page.
The processor is having a hard time keeping up with it all.

Hope there is a way to slow it down.

lek_ccl
03-09-2006, 04:21 PM
hm... i dun get wat you are trying to do.. if u were saying a time ticker, or any counter which related to time, i would suggest you try setInterval. its more accurate. :)