Hi.
Today at Flexdev*, a brazilian flex group, there was a message about the
mouse_over event.
The scenario is a canvas with an image inside.
The code was:
public function color_over(evt:Event):void{
evt.target.setStyle("backgroundColor",someColor);
}
public function color_out(evt:Event):void{
evt.target.setStyle("backgroundColor",someColor);
}
<mx:Canvas
mouseOver="color_over(event)"
mouseOut="color_out(event)">
The problem was that, when the mouse was over the image, it dispatched a
mouseOut event.
Someone said: "change target for currentTarget", and it did work.
My case is: it doesnt work for Flash... If you have the same scenario (except
that youll have Movieclips and not Canvas and Image), the mouseOut event will
be always dispatched...
I could figure out why... Or where inside Flex this behaviour is set...
Tnx in advance
*http://groups.google.com/group/flexdev/browse_thread/thread/2e3acd2ab1f89946?hl=pt-BR#