In addition of Application.application.method(), you should be able to have in 
your Alert 
component (or the component that is aware of the Alert box and can detect a 
close event), 
something like this Application.application.dispatchEvent(new 
Event(MyAlertEvent.ALERT_CLOSED)) and in the other component that you want to 
be aware 
of the closed alert have 
Application.application.addEventListener(MyAlertEvent.ALERT_CLOSED, 
someMethod). 

More generally, the solution is to have one component dispatch and event to and 
another 
component listen to an event from an object that both components are aware of.

--- In flexcoders@yahoogroups.com, "sleblang" <[EMAIL PROTECTED]> wrote:
>
> Thanks for all the suggestions. I am sure one if not all of them would
> work. Just out of curiosity, in Flash, you can set a listener for the
> Stage to receive via capture or bubble, for example, mouseclicks
> (Stage.addEventListener(MouseEvent.CLICK,clickHandler)). Is there no
> way to do this in Flex with the Alert component and the Stage
> (Application.application?)?
> 


Reply via email to