Copy link to clipboard
Copied
Hi everyone,
For some reason, I'm having the hardest time finding a way to control how many times my animation loops in Adobe Animate. I'm creating HTML5 banner ads and I am limited to 15 seconds / 3 loops Max.
Any suggestions would be greatly appreciated!
Thanks so much,
Lindsay
Copy link to clipboard
Copied
Can you simply have your loop animation be a total of 5 seconds long inside a Graphic or Movie Clip symbol and then control it from there or does it have to be all code generated loops?
Copy link to clipboard
Copied
Stick this code at the end of your timeline and set the count as desired.
if ((this.looped = ++this.looped || 0) == 2) this.stop();