Loop timeline, then stop on a specific frame in final loop — not stopping nested movie clips
- April 14, 2021
- 2 replies
- 1229 views
Hello!
New to Animate, very new to JS. I've built a banner ad in the HTML5 Canvas, but I feel like I'm missing something obvious. Based on this thread, I applied the following code to the frame where I'd like my animation to stop after looping:*
if (!this.looped) this.looped = 1;
if (this.looped++ == 2) this.stop();
I applied the action at the top level of my .fla (I have several nested movie clips and would like all to stop on a specific frame). For a while I thought it wasn't working at all, but now I see that the stop action is only effecting my background layer (not any of the other movieclips). Can anyone help me understand how to get EVERYTHING to stop simultaneously? (see image below)
*I would actually like to loop the animation 3 times and have it stop specifcally on frame 231 of 240, if that information is useful. I just figured I'd try the code above to start
