I have a component that extends UIComponent of Flex, I want to add it a FlexMouseEvent.MOUSE_DOWN_OUTSIDE listener but it does not works. that means I can not capture the event. But when I use PopUpManager to add this component, and then add a FlexMouseEvent.MOUSE_DOWN_OUTSIDE listener, it works fine.
Is FlexMouseEvent.MOUSE_DOWN_OUTSIDE only works for pop-up components?
Thanks for helping
That event only fires through popups. If you want to check a mouse event you need to add the regular mouse down to the parent container and check if the target is NOT the child.
Another way you can do this is by catching the event on the stage and on the component… Since bubbling goes upwards, the component click gets caught first.
Disclaimer I haven’t tested this or thought about it very hard… so it may not work.