quick dumb flash question
quick dumb flash question
Out of context: Reply #6
- Started
- Last post
- 8 Responses
- tGP0
try this (it will allow you to set an initial count-from number, and a count to number)... play with movie frame rate, or with stretching the frames apart to make the timeline slower to run the iteration:
// frame 1 code //
// frame 1 code
var max_number = 5000;
// set current number to what you want to count to start from
var current_number = 0;// frame 2 code //
if (current_number < max_number) {
current_number++;
output_txt.text = current_number;
trace("added one");
} else {
this.gotoAndStop(4);
}// frame 3 code //
gotoAndPlay(2);// frame 4 code //
stop();cheers.
j