Solved

Movie clip symbol looping

Posted on 2003-10-25
4
187 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:Saqib Khan
ID: 9621534
ccarnovale Why dont you Click on the LAST Keyframe in your MovieClip and Put the Stop Action to it.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Youtube video error 30 770
Google Chrome pepflashplayer.dll 8 133
2012 Domain With 350 Machines All Running Windows 7 7 131
Can't play streaming video on event.on24.com 7 261
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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.

808 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