+HELP quick flashMX?
- Started
- Last post
- 8 Responses
- ganon
how can you specify a loop count in your .fla?..right now i have a "go to and play (1)" at the end...but the client wants it to loop 3 times and stop...how?...
- ganon0
boss needs to know if i can do it simply NOW
help
- CISNKY0
Use an if statment that works out how many times your movie has played.
- PuFFi0
a variable that increments and if it's
>= to 3 than stop else the var++ on the frame at the end of the looptell me if I'm wrong else ... post the response
- ganon0
thanks, but can i get some more detail please...i am not an actionscripting pro yet....
thanks
- CISNKY0
Put in your first frame.
if (run == 3) {
stop();
} else {
play();
}In your last frame
run ++
gotoAndStop(1);
- majman0
on the last frame of the loop do something like this:
i++
if(i >= 3){
stop;
}else{
gotoAndPlay(1);
}that should do it. for the gotoandPlay(1), put whatever framenumber the loop starts out at if it isn't the first frame. also, if you don't want it to stop after it loops 3 times, change the stop command into a gotoAndPlay(?) something.
hope that helps
- ganon0
thank you all, i got it to work...i used your script, CISNKY, worked wonders...my boss and i are eternally gratful....
CISNKY for president!!!!
- ganon0
thanks to majman too....
majman for vice president!!!!