Posted By

blainejoubert on 01/07/09


Tagged

dynamic TextField mouseEnabled buttomMode


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

obear


Remove arrow on flash button with dynamic textfield


 / Published in: ActionScript 3
 

Create a button with dynamic text inside and stop the mouse cursor from flickering between hand and arrow!

  1. myButton.headline.text = "some text"
  2. myButton.headline.mouseEnabled = false;
  3. myButton.buttonMode = true;
  4. myButton.addEventListener(MouseEvent.ROLL_OVER, thumb_ROLLOVER);
  5.  
  6. function thumb_ROLLOVER(e:MouseEvent):void
  7. {
  8. // do something
  9.  
  10. }

Report this snippet  

You need to login to post a comment.