Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Movie Clip finish actionscript

Status
Not open for further replies.

thecynicality

Technical User
Dec 29, 2004
48
US
Ok, i have a button that plays a little movie clip animation, is there a way i can tell it to go back to the first frame after the movie clip is finished?
 
Or is there a way i can put the movie clip in the down scene of the button, and keep playing even after released, and then when the clip is finished, reload the button?
 
Code:
gotoAndStop(1);

Actions layer, last frame of the movieclip animation.

Hope it helps.



Wow JT that almost looked like you knew what you were doing!
 
Well i tried this, but the problem with it is, if i put that in the last frame of the movieclip, it just goes back to the first frame of the movie clip, and it just loops continuously.

Is there a way i can tell it to go to the first frame of the main movie?
 
Label the first frame of the main movie with the label begin and use this at the end of your movie clip...

_level0.gotoAndStop("begin");


Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top