Groups | Blog | Home
all groups > flash actionscript > august 2007 >

flash actionscript : Replay Button Advanced



Mongo111
8/9/2007 8:27:57 PM
I want to make my Replay button go back to the beginning of the movie and play
up to a certain frame, then skip about 20 frames and then go to the replay
button at the end of the movie. Can I do this with the button code, or do I
need to make a different scene for the part I don't want to replay the
subsequent times? Thank you, Rubyrubekin
Vee
8/9/2007 9:51:02 PM
Break this project down to a few steps.
See if you can accomplish the first part:
[Q]I want to make my Replay button go back to the beginning of the movie[/Q]
Im assuming 2 things... you are working with AS 2 and you are refering to the
main timeline. If you had a btn. named my_btn you might write the following.
See if that works then we will go to the next step.


// place this code on the main timeline the first time the button appears
my_btn.onPress(){
// here we tell the playhead to jump to and play frame 1
gotoAndPlay(1);
}
AddThis Social Bookmark Button