Forgot to mention that (1) is 'dirty' because you will need to pass a
reference of component B to component A on initialization, so
component A knows about B, something similar to:

<componentA>
  <script>
     [Bindable]
        componentBReference:ComponentB ;
  </script>
<componentA/>

...

<application>
   <componentA componentBReference={B}/>

   <componentB id="B"/>

</application>

--- In flexcoders@yahoogroups.com, "sleblang" <[EMAIL PROTECTED]> wrote:
>
> Thanks. That is not exactly what I am asking. I understand how to set
> a callback/listener for Alert.show() as you explained. However, is
> there another way to detect from another component when the alert has
> been closed (i.e. bubbling, etc.)?
> 
> --- In flexcoders@yahoogroups.com, "fotis.chatzinikos"
> <fotis.chatzinikos@> wrote:
> >
> > Hi, if i understand correctly, the following doesit:
> > 
> > Alert.show("This is the alert text.","",4,null,alertClosed) ;
> > 
> > where alertClosed is an event listener...
> > 
> > Check the asdoc for the alert.show method ;-)
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "sleblang" <scott@> wrote:
> > >
> > > 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