On Mon, Jan 12, 2009 at 8:59 PM, biosmonkey <[email protected]> wrote:
> The dispatched event needs to be heard by any component, anywhere, by > setting an event listener for it at the application level. So > bubbling up to the app is critical. Since your component has nothing to do with UI, strictly speaking, making it a UI component (extending DisplayObject) seems like the wrong thing to do. Event bubbling is typically for UI events; your event is not a UI event, it's just that you need it to be broadcast application-wide. So I would consider making the event dispatcher object available application-wide, by making it a singleton, for instance, or by making it a property of the main application. It seems you're already doing something to that effect -- dispatching off the main application object. Manish

