Saturday, March 21, 2009

Making a basic button in AS3

It don't get much more basic than this but it's quite a big difference making a button in AS3 then in AS2.

function clickButton(evt:Event):void{
trace("the mClip button is pressed");
}
mClip.addEventListener(MouseEvent.CLICK,clickButton);

No comments: