I made a movie in flash and I want it to stop at the end and play again when you press the "play again" button, but it just keeps looping. How do I do this?
Stop and start
Started by Chroniq, Mar 30 2008 10:45 AM
3 replies to this topic
#1
Posted 30 March 2008 - 10:45 AM
#2
Posted 30 March 2008 - 11:11 AM
I can tell you're new to Flash, welcome, man! Its pretty simple.
1. Click on the last frame of your movie, and bring up the "actions" panel (ctrl + 'f', I think)
2. Type in the following script without quotes:
3. Click on your "play again" button and enter the following ActionScript:
That's about it! Message me if you need more help
1. Click on the last frame of your movie, and bring up the "actions" panel (ctrl + 'f', I think)
2. Type in the following script without quotes:
stop ();
3. Click on your "play again" button and enter the following ActionScript:
on (release) {
gotoAndPlay (1);
}
That's about it! Message me if you need more help
Edited by MyFlash13, 30 March 2008 - 11:14 AM.
#3
Posted 31 March 2008 - 09:40 AM
Thank you !
Stopping the movie works, but where precisely do I put in the code for the button?
Stopping the movie works, but where precisely do I put in the code for the button?
#4
Posted 12 April 2008 - 03:40 AM
click on your button and open actions pane (F9) at the bottom of the actions pane should be a little image of your button that's how you know you are typing the script in the button then just type the code:
on(release){
gotoAndPlay(1);
}
"(1)" is the frame you want that button to play, if you have let's say your movie in the 50th frame and you want to play the 27th frame then it's:
on(release){
gotoAndPlay(27);
}
hope it helps.
peace!
on(release){
gotoAndPlay(1);
}
"(1)" is the frame you want that button to play, if you have let's say your movie in the 50th frame and you want to play the 27th frame then it's:
on(release){
gotoAndPlay(27);
}
hope it helps.
peace!
Edited by iceball, 12 April 2008 - 04:34 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
