Skip to main content
Participant
April 23, 2016
Answered

Flash CC - stop animation looping

  • April 23, 2016
  • 1 reply
  • 13752 views

Hi,

trying to stop my animation looping. using Flash CC and exporting to swf flash player 9 for a google ad.

On the last frame on a new layer I inserted a new frame, added an action script.  The script has:

stop();

that is it.  but when I test the movie or export it, it's on continuous loop.  Any ideas?

screen shots:

http://smartrobbie.com.au/wp-content/uploads/Screen-Shot-2016-04-22-at-5.42.35-pm.png

http://smartrobbie.com.au/wp-content/uploads/Screen-Shot-2016-04-22-at-5.42.27-pm.png

    This topic has been closed for replies.
    Correct answer Colin Holgate

    Thank you Colin,

    I tried that but didnt seem to work for me? I also tried converting all elements to graphics and just doing stop(); or just having 1 movie element and putting an name and action as above but still no luck?

    if anyone has a moment I have the file here:

    Dropbox - flash file

    would greatly appreciate any advice!  I have run out of ideas!


    When you do a test, look in the Compiler Errors panel. There are several things wrong in your frame 1 script. That will make the animation just carry on, the stop at the end won't have any effect, because the code is never reached.

    1 reply

    just.emma
    Inspiring
    April 23, 2016

    Is it possible that you have the symbol set as a graphic instead of a movie clip?

    Participant
    April 23, 2016

    Thank you just.emma

    tried a few things, e.g. new blank frame and adding a script to the blank frame.

    adding the script to a symbol - and checked it wasnt a button/graphic and it was a 'movie clip'

    but these still show the animation looping for some reason.

    Colin Holgate
    Inspiring
    April 23, 2016

    If the animation is in a movieclip, doing a stop(); in the main timeline won't stop the movieclip. You could give each movieclip a name ("mc1" and "mc2" in my example below), in Properties, and then change your script to be:

    mc1.stop();

    mc2.stop();

    //etc, for each movieclip

    stop();