Highlighted

stop animation in Adobe Animate(html-canvas)

New Here ,
Jul 22, 2020

Copy link to clipboard

Copied

Hi, everyone. I need to stop animation in the game. I guess, I need to add KeyFrame to the timeline for the specific second, and later on to insert "this.stop()" inside of that action. But it doesn't work. What am I doing wrong? Thanks in advance!

Views

80

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

stop animation in Adobe Animate(html-canvas)

New Here ,
Jul 22, 2020

Copy link to clipboard

Copied

Hi, everyone. I need to stop animation in the game. I guess, I need to add KeyFrame to the timeline for the specific second, and later on to insert "this.stop()" inside of that action. But it doesn't work. What am I doing wrong? Thanks in advance!

Views

81

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 22, 2020 0
Adobe Community Professional ,
Jul 23, 2020

Copy link to clipboard

Copied

to stop a timeline (eg, mc1), use:

 

this.mc1.stop();

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 23, 2020 0
New Here ,
Jul 26, 2020

Copy link to clipboard

Copied

mc1, what is this? and how can I get it? Thanks in advance

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 26, 2020 0
Adobe Employee ,
Jul 27, 2020

Copy link to clipboard

Copied

Hi ViktorLavrenenko, it depends on which part of animation you would want to stop - whether it's main timeline animation or MovieClip animation.

 

If you'd want to stop the main timeline animation, the steps mentioned by you works well - (Add Keyframe -> this.stop() in actions panel). But this will not stop MovieClip - such animations continues to run.

 

To stop MovieClip animation in main timeline, you will have to add MovieClip instance name in the frame script -'this.<movieclip_InstanceName>.stop()'. To find the MC instance name, just click on the MC in stage and check for the information in 'Object' tab of 'Properties' panel.

 

Screenshot 2020-07-27 at 1.31.58 PM.png

 

Hope this helps. If you still continue to face problems, kindly share the sample file to investigate further.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2020 0