Return to Snippet

Revision: 41343
at February 16, 2011 14:03 by vdubplate


Initial Code
button_btn.addEventListener(MouseEvent.CLICK, myClickReaction);

function myClickReaction (e:MouseEvent):void

{	
gotoAndStop( Math.ceil(Math.random() * 4) );
trace (currentFrame);
}

Initial URL

                                

Initial Description

                                

Initial Title
Randomly pick a frame on stage

Initial Tags

                                

Initial Language
ActionScript 3