Skip to main content
Participant
Jul 19, 2007 4:40 PM UTC
Answered

Maximum loops

Hi, I am doing a web ad for a site and they stipulate that the flash file can only loop 3 times max. How do I do this? I am a designer who is very limited in my action scripting knowledge so any help would be greatly appreciated.
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Jul 19, 2007 5:01 PM UTC
on the last frame of your animation (where you want your ad to stop), put the following code

if (loopCount == undefined) loopCount = 0;
if (++loopCount == 3) stop();

i think :)

10 replies

Correct answer
Jul 19, 2007 5:01 PM UTC
on the last frame of your animation (where you want your ad to stop), put the following code

if (loopCount == undefined) loopCount = 0;
if (++loopCount == 3) stop();

i think :)
Translate
Participant
Jul 19, 2007 6:20 PM UTC
That worked perfectly! Thank you very much.
Translate