Skip to main content
Participant
March 4, 2020
Question

Control Looping

  • March 4, 2020
  • 2 replies
  • 680 views

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

 

This topic has been closed for replies.

2 replies

Legend
March 4, 2020

Stick this code at the end of your timeline and set the count as desired.

if ((this.looped = ++this.looped || 0) == 2) this.stop();
_keyframer
Community Expert
Community Expert
March 4, 2020

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?

Animator and content creator for Animate CC