How can I make Flex dispatch mouse events only when I interact with visible parts of a component? In this case I want event to be dispatched only when hovering the line.
<s:Group mouseOver="trace('over')">
<s:Line xFrom="0" yFrom="0" xTo="100" yTo="100">
<s:stroke>
<s:SolidColorStroke color="0" weight="3"/>
</s:stroke>
</s:Line>
</s:Group>
I remember I had a problem some time ago in Flex 3, when I couldn't catch mouse events until I fill the canvas with transparent background. But now I have the opposite problem. Thanks for help.