HOME | DD

Published: 2010-11-26 07:49:51 +0000 UTC; Views: 122; Favourites: 0; Downloads: 1
Redirect to original
Description
Yeah you have no fucking choice sissiesBecause making a freaking replay button is SO HARD
Related content
Comments: 1
sumangal16 [2010-11-26 08:47:40 +0000 UTC]
create a new layer (name it actions) on top of layer 1
put a blank keyframe right above the last frame of layer 1
right click -- actions
type : stop();
this will stop the animation at the last frame
now create a button ( convert your replay text into button by pressing f8)
on the properties of button give instance name = button_1
now type the following code after stop(); (the code that we wrote before)
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void
{
gotoAndPlay(1);
}
hope you got it else plz ask me n i'll explain
👍: 0 ⏩: 0