View Full Version : Play and REplay button.[Flash][Buttons]

04-05-2012, 06:08 AM
I know a lot of people know about this code but i'm posting this for all the begginers (like me LoL) in coding ^^

just to make it clear i'm using AS2

well let's get this started

Like in all the buttons tutorial go to library--common library--buttons just if you DON'T have a button with your own design


select the one you like from this library

when you have the button you like you're ready for the codes: this code goes in the button:

on (press) {


with the REplay button you have to follow all the steps again the only different thing is the code, replay code: obviously in other button.

on (press) {

in the first frame of your movie and the last where you put the buttons you need to put this code in the actions panel (F9): stop(); or the movie will play and all this work will be in vain, ok?


well I think that's all see you next time

Bye, vml..........

04-23-2012, 03:45 AM
thank you vml for the tutorial

04-23-2012, 05:14 PM
no problem "ridersaber" i'm here to help

04-26-2012, 10:27 AM
I think you should point out that this is AS2 and not AS3 somewhere in the upper portion of the tutorial. Some people might start this and not get the desired results due to the wrong actionscript version.

11-22-2012, 08:20 PM
I Completely Forgoted this Tut....