Skip to main content
Participant
January 30, 2018
Answered

Movie clip plays once - but *every time*

  • January 30, 2018
  • 2 replies
  • 211 views

I'm having a problem with what seems to be a really simple thing to do. I'm using Actionscript.

I have a short movie clip that I want to play once, and I'm using it in lots of places. I added a stop() command at the end of the clip to keep it from looping. But when I use the clip, it only plays the first time it's used.

Any idea what I'm doing wrong?

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

    If you are using HTML5 Canvas, the movieclip is stored in memory, even when it's not on the stage. Next time you see it, it will already be on the last frame. So, each time it appears you need to tell it to play.

    2 replies

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    January 30, 2018

    If you are using HTML5 Canvas, the movieclip is stored in memory, even when it's not on the stage. Next time you see it, it will already be on the last frame. So, each time it appears you need to tell it to play.

    macpawel
    Participating Frequently
    January 30, 2018

    If you want to use some instances of the same MC be sure you add them to stage in different keyframes.

    If your movie enter frame (keyframe) MC starts and refresh

    Try to add some keyframes/layers to create your movie

    You can also add ActionScript to start your MC

    Or

    Maybe it would be better to add Instance Name for your MC and stop it using ActionScript at time you wish?

    pawel