The mouse events are very low-level and fire a lot.

 

Try rollOver and rollOut instead.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Wednesday, November 05, 2008 12:07 PM
To: [email protected]
Subject: [flexcoders] mouseOver and mouseOut

 

code:

<mx:HBox
mouseOver="moCanvas.visible=true;"
mouseOut="moCanvas.visible=false;"
>

<mx:Text text="test" />
<mx:Canvas id="moCanvas" width="10" height="10" visible="false"
backgroundColor="0x000000" />

</mx:HBox>

Obviously simplified, basically I am interested in finding out why the
mouseOut event is triggered when I mouse over different parts of the
HBox.

For instance, when I mouseOver the text, it shows the moCanvas, when I
mouse off the text but stay in the "HBox" it hides the moCanvas...

Any ideas?

 

Reply via email to