control event propagation flex
Hello I have a small issue: There is 开发者_如何学Can area containing multiple controls one on the other. I want that the topmost control will not catch any events(or specifically mouse events). Changing the z-index of the control is not good since I need it to stay the topmost control. Any suggestions ?
Define "Area"! Do you mean a container? Or just a portion of the screen?
Define "Top most control"! Do you mean the parent of all these controls, refering to the display hierarchy? OR do you refer to some visual aspect of the controls?
If you want to stop a component from broadcasing events, you can use stopImmediatePropogation in an event listener on the component. Also check out docs for stopPropogation and read this documentation on the three stages of where Flex events look for listeners.
精彩评论