/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
button_btn.addEventListener(MouseEvent.CLICK, myClickReaction); function myClickReaction (e:MouseEvent):void { gotoAndStop( Math.ceil(Math.random() * 4) ); trace (currentFrame); }