Stick Page Forums Archive

Replay Button

Started by: Paxxy | Replies: 3 | Views: 1,014

Paxxy

Posts: 107
Joined: Sep 2012
Rep: 10

View Profile
Oct 10, 2012 1:45 AM #755705
Does anyone know how to make a replay button?
Newarmagedon
2

Posts: 439
Joined: May 2012
Rep: 10

View Profile
Oct 10, 2012 2:05 AM #755719
Ok, I could explain u the easy or the hard way :S
Easy way:
1.-Make a movie clip
2.-Name it... for example... "Button"
3.-Click it and press F9
4.-Copy and paste this in the window that will appear

on (release) {
_root.gotoAndPlay (0);
}


When u press the movie clip, the hole movie will start from the beginning and play automatically
If u wanna make the same, but without playing automatically, the code should be like this:


on (release) {
_root.gotoAndStop (0);
}


Also the "zero" between parenthesis means the frame where is located the "new beginning" (hope u understand me u.u) and u can change it for whatever frame u want to

If u still need help, post a comment below
:fuckyeah:
~Newa
bl3u

Posts: 1,434
Joined: Feb 2012
Rep: 10

View Profile
Oct 10, 2012 2:08 AM #755721
Make the button. Convert to symbol Make it a "button" Right click>Actions, copy and paste:

on (release) {
_root.gotoAndPlay(2);
}


the actions tab for the frame, Copy and paste:

stop();


If this didnt make sence. try this
jdogg
2

Posts: 1,889
Joined: Jul 2012
Rep: 10

View Profile
Oct 10, 2012 2:13 AM #755724
Quote from Newarmagedon
Ok, I could explain u the easy or the hard way :S
Easy way:
1.-Make a movie clip
2.-Name it... for example... "Button"
3.-Click it and press F9
4.-Copy and paste this in the window that will appear

on (release) {
_root.gotoAndPlay (0);
}


When u press the movie clip, the hole movie will start from the beginning and play automatically
If u wanna make the same, but without playing automatically, the code should be like this:


on (release) {
_root.gotoAndStop (0);
}


Also the "zero" between parenthesis means the frame where is located the "new beginning" (hope u understand me u.u) and u can change it for whatever frame u want to

If u still need help, post a comment below
:fuckyeah:
~Newa

Don't listen to this.

Quote from bl3u
Make the button. Convert to symbol Make it a "button" Right click>Actions, copy and paste:

on (release) {
_root.gotoAndPlay(2);
}


the actions tab for the frame, Copy and paste:

stop();


If this didnt make sence. try this


Listen to this.
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.