Skip to main content
Participant
July 19, 2007
Answered

Maximum loops

  • July 19, 2007
  • 1 reply
  • 1532 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 has been closed for replies.
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 :)

1 reply

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.