You can do that, however it is not very engineering like to bubble lots of 
layer to the application. I would bypass thet event through Cairngorm if I were 
you, provides a more decoupled way of handling things....

HTH,
Claudiu



----- Original Message ----
From: sleblang <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, October 21, 2008 10:52:11 PM
Subject: [flexcoders] Re: Alert.show - Detect when closed from another mxml 
component


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.addEventList ener(MouseEvent. CLICK,clickHandl er)). Is there no
way to do this in Flex with the Alert component and the Stage
(Application. application? )?

--- In [EMAIL PROTECTED] ups.com, claudiu ursica <the_braniak@ ...> wrote:
>
> Suposedly you'd have a data model in there, in you app, you can hold
a boolean value and set it to true everytime you call Alert show and
set it to false on close. In your other mxml just check that property
of the model and you're done. (Not sure it is the best way to do it
though.). 
> 
> HTH,
> Claudiu
> 
> 
> 
> ----- Original Message ----
> From: sleblang <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] ups.com
> Sent: Monday, October 20, 2008 10:52:25 PM
> Subject: [flexcoders] Alert.show - Detect when closed from another
mxml component
> 
> 
> I have an Alert.show() being called from a command class. I need to
detect when this Alert is closed in another mxml component (as opposed
to the command class). What's the best way to determine when it's been
closed?  Does the event bubble? So far I have not been able to 'catch' it.
> 
> Thanks for any and all replies.
>

    


      

Reply via email to