I have an app build with Flex 3 that loads various swf files. Some of the swf files have buttons. The main flex app has an event listener for mouse events. The effect of clicking on the main app is to display a spite at the mouse location. This sprite then is removed after a short timeout period. What is happening is the sprite blocks the button underneath it and prevents the click event from being received. I am looking for a technique to handle this entirely in the main flex app. Any ideas??
What needs to happen is this:
What is happening now is this:
Since a mouse click is really a mouse up event, the sprite is receiving the mouse up and it is not passing it on. I have a mouse up listener on the sprite, but what do I need to do? Can I issue another mouse up event from this listener method? I can but then the sprite will receive it again and I'm in a loop. Do I have to remove the mouse up listener, issue the mouse up event, then wait , then re-add the listener. This seems a bit clunky!
you can dispatch New Event on your loaded swf(s) after the sprite is removed and from within your loaded swf(s) that are listening for that event can then call stopPropagation() or stopImmediatePropagation() to stop the event flow.
If the temporary sprite has buttonMode=mouseEnabled=mouseChildren=false, it shouldn't block the mouse activity from the Button beneath it
Flex SDK Developer
Adobe Systems Inc.
Thanks, that was the easy answer I was looking for. mouseChildren = false was the thing I di dnot know about!