Solved

Movie clip symbol looping

Posted on 2003-10-25
4
185 Views
Last Modified: 2010-04-03
I have a movie clip symbol that I want to run once when it appears on the stage.  It keeps repeating now -- how can I stop it?  Thanks.
0
Comment
Question by:ccarnovale
4 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 50 total points
ID: 9620411
Drop this code to the movieclip:

onClipEvent(load){
      this.run = true;
}
onClipEvent(enterFrame){
      if(!this.run)return
      if(this._currentframe == this._totalframes){
            this.run = false;
            this.gotoAndStop(1);
      }
}
0
 
LVL 23

Expert Comment

by:adilkhan
ID: 9621534
ccarnovale Why dont you Click on the LAST Keyframe in your MovieClip and Put the Stop Action to it.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now