I use to make buttons all the time. For some reason I have forgotten how. After making the button, you right click and go to actions... right?Then what?I just need a simple, on click, gotoandplay(5);
On as2? I'd say you pretty much have it there already...on(click){ theTargetThatNeedsToPlay.gotoAndPlay(5);}
AS3 is faster.Here:import flash.events.MouseEvent;//imports mouse eventsBUTTON.addEventListener(MouseEvent.CLICK, clicked);//finds the functionfunction clicked(event:MouseEvent) {//creates event gotoAndStop(5);//go's to a frame and stops}
Damn you guys overcomplicate.on (press) { gotoAndPlay (5)}
Butter, mine's AS3.. >.>
You must be logged in to post a reply!