PDA

View Full Version : Mouse Out on TextField



jgallen23
June 25th, 2007, 02:44 PM
I have a class that extends sprite. I'm add events like this:
this.addEventListener(MouseEvent.MOUSE_OVER, Maximize);
this.addEventListener(MouseEvent.MOUSE_OUT, Minimize);

I also have a text field that I am adding using addChild(_txtField). Everything works great, except the mouse_out fires when I hover over the _txtfield text. Is there any way for it to not fire over text?

JGA

sasxa
June 25th, 2007, 02:46 PM
try:


this.mouseChildren = false;

jgallen23
June 25th, 2007, 02:56 PM
awesome! thanks for the quick reply

jgallen23
July 2nd, 2007, 04:22 PM
is there any way to ignore some children and not other? Basically I have a bubble that grows when the mouse is over and then on top of the bubble, I have a couple of buttons that I need to be able to be clicked. Any idea on how to do this would be great

Dazzer
July 2nd, 2007, 11:16 PM
I think there is a mouseEnabled property as well.