Skip to main content
Participant
July 19, 2007
Answered

Maximum loops

  • July 19, 2007
  • 10 replies
  • 1591 views
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
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
July 19, 2007
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 :)
Participant
July 19, 2007
That worked perfectly! Thank you very much.