Copy link to clipboard
Copied
Hello guys, how i can execute only 2 times a animation?, i use "stop();" when i need to see the animation only 1 time, but what command i need to use for do this only 2 times?.
Thanks mates.
Copy link to clipboard
Copied
Hi.
One approach would be to place a code like this in the last frame of the animation:
if (this.started)
stop();
this.started = true;
Or, if your animation is within a Graphic symbol, you can extend it on the main timeline to last 2x its internal duration, set it to loop in the Properties panel and add a single stop in the last frame of the main timeline.
Regards,
JC
Copy link to clipboard
Copied
Thank you!
Copy link to clipboard
Copied
You're welcome!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now