Copy link to clipboard
Copied
I have created a short animation in Adobe Animate CC for the first time and got it exported as HTML/JS to include in a website however the animation keeps repeating. I want the animation to stop once it has finished.
Can anyone help with it?
Thanks
Hi. Just add this.stop() in the last frame, this function stop the timeline.
Copy link to clipboard
Copied
Hi. Just add this.stop() in the last frame, this function stop the timeline.
Copy link to clipboard
Copied
Brilliant thanks Marlon!
Copy link to clipboard
Copied
Hi... I'm an old Flash user trying to learn animate cc. I tried to put this code on but when I press the keyframe, nothing happned. So I don't know how I put this Stop comand on the timeline.
Thank you
Copy link to clipboard
Copied
Hi. Yo need put the code in a frame (for example, the first frame) of the main timeline if the animation is in the timeline.
Copy link to clipboard
Copied
First of all, place the cursor above the point you need to stop animation; in the Insert button choose "Time line" and add a Key Frame.
Then, go to the "Window" button and select Actions field: a window will open. Go to Timeline Control, select and double clic on "Stop". The indication " Stop ( ) ; " will appear within the window and a small "a" or alpha will appear within the key frame. Close the actions window. Action is ready, animation will not repeat any more.
Copy link to clipboard
Copied
I have tried Stop(); and this.stop(); but nothing work I don't understand.
Copy link to clipboard
Copied
Hi.
For HTML5 documents, use this.stop();.
For AS3 documents, use stop();.
* lowercase s in the stop word
Regards,
JC