i was trying to make a countdown loop.
It counts down and when it gets to a certain number it moves to the next frame. How do i do this with the actions only on the one frame?
Printable View
i was trying to make a countdown loop.
It counts down and when it gets to a certain number it moves to the next frame. How do i do this with the actions only on the one frame?
add this script in ur first frame.
function mytrace() {
a = i;
i++;
if (i > 20) {
gotoAndStop(3);
}
}
setInterval(mytrace, 1000, "This is a test!");
add i=0; in the other layer but in the first frame
the problem is i need to see the numbers count down in a dynamic text box, i'm also using really high numbers so it needs to count down in large jumps, i.e. counting down from 6,000,000 to 470,000 then going to another frame to have some text appear, then the count down would be from 470,000 to 19,000.
in this script u can see the count down in the output.make the dynamic textbox variable name to a.if u want the counts start from 6,000,000 assign i=6,000,000.
and replace i++ by i--
and 20 by 470000
thanks. that works :D
oh happyya.have a nice day.