I dispatch a customEvent from a class.?The class extends EventDispatcher, and I can verify that the event does in fact get dispatched.?But it's not getting picked up by the mxml component or the main application container.?Bubbles is set to true.?What am I missing here?
EventDispatcher from custom classOnly DisplayObjects can use bubbling=true and only when on the display list. Bubbling is generally bad practice except for UI input events. Define singletons that other parts of the app can talk directly to.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui
No comments:
Post a Comment