FLex MouseEvent doesn't fire when Mouse stays over element

Posted by Tomaszewski on Stack Overflow See other posts from Stack Overflow or by Tomaszewski
Published on 2010-04-23T17:49:20Z Indexed on 2010/04/23 17:53 UTC
Read the original article Hit count: 419

Filed under:
|
|
|

Hi, i'm trying to make a scrollable box, when a mouse enters and STAYS on "wrapper"'s area, "pubsBox" moves 10 pixels to the left.

    <mx:Canvas id="wrapper" height="80" width="750">
    <mx:HBox id="pubsBox" horizontalGap="10" height="80" width="100%" />
</mx:Canvas>

My problem is that I'm not sure how to make the MouseEvent.MOUSE_OVER work, to recognize that the mouse is still ON the area and so pubsBox should continue to move 10 pixels to the left every second.

I understand that i have to use a Timer, but what I'm concerned about is the fact that I can't get Flex to recognize that the mouse is still OVER "wrapper" and continue firing the event. Any ideas?

© Stack Overflow or respective owner

Related posts about flex

Related posts about events