I have a custom control in my app which pops up a dialog in which the
user can alter some data in the underlying domain model.  

I have a custom event SetDirtyEvent(o:Object) which gets dispatched
and a listener in the main app which then keeps a singleton list of
objects which have been changed so I have a minimal server
synchronisation transaction.

When I call dispatchEvent(new SetDirtyEvent(myDirtyObject)) from
anywhere else across my application (and I do that a lot) the listener
in the Application fires and it works as expected.

When I call this from any popup window the app event handler never
fires.  I have bubbles set to true.

What am I doing wrong?

Do I have to explicitly set some sort of parentage of the popup window
in order for the custom event to bubble up to the app?

Thanks
Simon

Reply via email to