I want to capture every mouse event and I tried to add event listeners to FlexGlobals.topLevelApplication. However there are some cases (like Flex's Menu class) when the clicks aren't captured - probably somewhere the event propagation is stopped. For example in SystemManager.as I found this:
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, true, 1000);
...which seems to override my listener. Also I tried to add Listeners with priority int.MAX_VALUE but with no success.
So my question is - how can I capture all mouse clicks, without worrying about my events being stopped somewhere? Maybe some javascript hack? Or maybe to add the event listeners somewhere where there is no chance for them to be canceled? Thanks.