Skip to main content
Participant
Apr 26, 2016 2:48 AM UTC
Answered

stop(); not working on Adobe Animate timeline

I was just testing the program, and I created a simple motion animation, and added a stop on the timeline and it simply does not work. Not with a motion tween, not with a classic tween.

There are no errors on the output. I also checked the browser console, and tested in multiple browsers. I am using an mc (movie clip symbol).

All by the book. I never had these issues with Flash.

This is a simple thing, and I have no idea what is going on.

This topic is closed to new replies. Start a new post to keep the conversation going.
marjantrajkovskiCorrect answer
Inspiring
Apr 26, 2016 8:06 AM UTC

If you are using HTML5 Canvas must add this before stop.

this.stop();

19 replies

Known Participant
Nov 1, 2018 12:55 PM UTC

This is a very old problem from flash and still is in the newest version.

Solution: Besides using this.stop(); in HTML5, never use blank key frames on the layer of the movieclip you want to target. Blank keyframes confuses flash/animate and make the movieclip unreliable...

Translate
Legend
Nov 1, 2018 5:13 PM UTC

Jaapnauta  wrote

Solution: Besides using this.stop(); in HTML5, never use blank key frames on the layer of the movieclip you want to target. Blank keyframes confuses flash/animate and make the movieclip unreliable...

No, blank keyframes do not confuse Animate. What Animate does (wrong) in Canvas mode is very simple: The first instance of a particular library symbol on a layer will, when published, become the instance name for all instances of that symbol on that layer. This happens because they're literally all the same instance, just getting turned on and off as needed. Whoever wrote the Canvas exporter probably thought they were being tremendously clever.

Translate
Known Participant
Nov 2, 2018 7:36 AM UTC

Anyway, to avoid problems with executing scripts on timelines it stays wise not to use blank keyframes, really. Another tip is to not use different instance names on the same movieclip in different frames on the same layer... How flash deals with it by generating the output has never been the strongest reliable part of the software. And I have no idea why the responsible dude thinks he did something clever. This problem is known since the beginning of this millennium...

Translate
Participant
Sep 7, 2017 12:17 PM UTC

this.stop(); function is working for me. Before I tried by stop(); function.

Translate
Legend
Sep 7, 2017 1:57 PM UTC

Okay... so you bumped a year-old thread to inform everyone that you're not having a problem with a common task?

Translate
marjantrajkovskiCorrect answer
Inspiring
Apr 26, 2016 8:06 AM UTC

If you are using HTML5 Canvas must add this before stop.

this.stop();

Translate
garybrindley
Known Participant
Aug 30, 2016 12:13 PM UTC

I have found the same issue. I am not using HTML Canvas. Either way, I tried both stop(); and this.stop(); in the Actions layer on the timeline and neither work. When hitting Enter in Animate it ignores it. When Debug it ignores it. When Publish to AIR it ignores it.

I have created various new projects to try different settings, even tried on PC and Mac. Never works.

Translate
Colin Holgate
Inspiring
Oct 9, 2016 9:14 PM UTC

If you have a movieclip on the stage, a stop(); in the timeline won't stop the animation in the movieclip. You would either need to put a stop(); into the movieclip itself, or give the instance a name, then say, for example: myclip.stop();

Pressing the Enter key when looking at the timeline only makes the playback head move along, it doesn't trigger any of the scripts.

If you do a Debug, or Test Movie, or test AIR in the debug player, look for any errors in the Compiler window or the Output panel.

Translate