Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Movie clip plays once - but *every time*

New Here ,
Jan 30, 2018 Jan 30, 2018

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?

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

correct answers 1 Correct answer

LEGEND , Jan 30, 2018 Jan 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.

Translate
Advocate ,
Jan 30, 2018 Jan 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 30, 2018 Jan 30, 2018
LATEST

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.

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