Button with Buttonmouseover-Cursor

/ Published in: ActionScript 3
Save to your folder(s)

I always forget how to implement a button with active mousecursor....

Copy this code and paste it in your HTML
  1. startButton_btn.mouseEnabled = true;
  2. startButton_mc.buttonMode = true;
  3. startButton_mc.addEventListener(MouseEvent.CLICK, onStartbuttonClicked);
  5. public function onStartbuttonClicked(event:MouseEvent):void
  6. {
  7. trace("onStartbuttonClicked");
  8. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.