-
I am trying to figure out either how to make a movie end, instead of keep going around, and around again in a loop. Or, I need to know how to get a replay button.
Thanks Please help.
--LONDONABOY--
-
HELP>>>ACTIONSCRIPT DICTIONARY
On the last frame of your animation put this as a frame action:
stop();
To make a replay button, add this code to a button on the last frame of your animation:
on(release){
_root.gotoAndPlay(1);
//or if frame one has a label use -
_root.gotoAndPlay("frameOneLabel");
}
Good Luck!
-
cODE
How do I add the code to the button??????
I have MX by the way :-)
-
HELP>>>ACTIONSCRIPT DICTIONARY
okay, drag an instance of a button from your library.
Select that instance and open up the Actions window.
If this button is inside of the movieclip you want to replay you can add this code:
on(release){
gotoAndPlay(1);
}
or
on(release){
gotoAndPlay("frameName");
}
If it is the main timeline that you wish to control, add _root in front of the goto statements.
Good Luck!
BTW The help menu in Flash MX has some tutorials that teach you the basics, maybe you want to investigate those.
-
fanks!
thank you!
that helped!
Londona_Boy
"On the erge of not asking stupid questions"
-
HELP>>>ACTIONSCRIPT DICTIONARY
You're welcome bro!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|