Forums

This topic is locked

Set number of Flash Movie loops in Dreamweaver MX

Posted 27 Jan 2003 21:29:09
1
has voted
27 Jan 2003 21:29:09 Scott Dukart posted:
Is there a way to set the number of loops for a flash movie?

I am trying to set a flash movie to loop 3 times. As of now I can only either loop 1 time or infinite loops.

I am using Dreamweaver and Flash MX products.

Thanks in advance.

Replies

Replied 27 Jan 2003 22:33:48
27 Jan 2003 22:33:48 asp asp replied:
Set a variable to "0" once it hits the last frame add varnum = varnum + 1, this will add 1 to the varnumber then check the number in frame 1

if (varnumber <=3) {
gotoAndPlay(2);
} else {
gotoAndStop();
}
Replied 28 Jan 2003 04:10:55
28 Jan 2003 04:10:55 asp asp replied:
I built you a working copy and sent it, just change the varnum <=3 to how many time you want to loop!!!

Reply to this topic