Skip to main content
somascope
Inspiring
March 3, 2008
Answered

How to prevent buttons from being blocked

  • March 3, 2008
  • 1 reply
  • 378 views
I have a button with an event handler for a click. On top of this button is a dynamic text field. The text doesn't allow you to click through it to the button... How do you control this aspect of a text field?

I know it's not buttonMode, as I have below, but is there something like this?

label_txt.buttonMode = false;
btn.addEventListener(MouseEvent.CLICK, doClick);
function doClick(e:Event):void{
trace ("click");
}
This topic has been closed for replies.
Correct answer Craig Grummitt
i believe you're looking for mouseEnabled:

1 reply

Craig Grummitt
Craig GrummittCorrect answer
Inspiring
March 3, 2008
i believe you're looking for mouseEnabled:
somascope
somascopeAuthor
Inspiring
March 3, 2008
Great - thanks for the help!