You can listen to any event in the event flow chain - you just need to
make sure which chain you are listening to.

You are using the popupmanager so you need to use the chain that is
based on systemmanager.

Is there any particular reason the "popup panel" cannot handle the
event itself?



--- In flexcoders@yahoogroups.com, "thelordsince1984" <lore...@...> wrote:
>
> --- In flexcoders@yahoogroups.com, "valdhor" <valdhorlists@> wrote:
> >
> > I assume he means that the event never makes it to the loadThisModule
> > function.
> > 
> > Also, I assume he means that he uses the popupmanager to "create a
> > popup panel".
> > 
> > With that said, IIRC, the application is not in the bubbling chain and
> > will never receive an event from a popup. Again, IIRC, you would need
> > the eventlistener on the systemmanager as that is the base of a popup.
> > 
> > Please correct me if I am wrong.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt" <tspratt@> wrote:
> > >
> > > First, tell us what you mean by "it doesn't work".
> > > 
> > >  
> > > 
> > > Then:  That looks ok, does it work with a base Event? (a side
note, in
> > > the handler, you can access any public property of the panel via the
> > > event.target reference, so you do not *have* to use a custom
event. )
> > > 
> > >  
> > > 
> > > What part of the above do I need to explain further?
> > > 
> > > Tracy Spratt 
> > > Lariat Services 
> > > 
> > > Flex development bandwidth available 
> > > 
> > > ________________________________
> > > 
> > > From: flexcoders@yahoogroups.com
> [mailto:flexcod...@yahoogroups.com] On
> > > Behalf Of thelordsince1984
> > > Sent: Tuesday, February 03, 2009 3:27 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Custom Event and bubbling phase
> > > 
> > >  
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > > , "Tracy Spratt" <tspratt@> wrote:
> > > >
> > > > That looks ok, does it work with a base Event? (a side note,
in the
> > > > handler, you can access any public property of the panel via the
> > > > event.target reference, os you do not have to use a custom
event. )
> > > > 
> > > > 
> > > > 
> > > > Tracy Spratt 
> > > > Lariat Services 
> > > > 
> > > > Flex development bandwidth available 
> > > > 
> > > > ________________________________
> > > > 
> > > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > > ] On
> > > > Behalf Of thelordsince1984
> > > > Sent: Tuesday, February 03, 2009 11:38 AM
> > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > > Subject: [flexcoders] Custom Event and bubbling phase
> > > > 
> > > > 
> > > > 
> > > > Hi,
> > > > 
> > > > i have a main application and there i create a popup panel...
> > > > 
> > > > from the popup panel i dispacth a custom event like this
> > > > 
> > > > var e1:CustomLoadEvent = new CustomLoadEvent("loadModule", true);
> > > > dispatchEvent(e1);
> > > > 
> > > > where loadModule is the type and the value true stands for
bubbles..
> > > > 
> > > > then at the creationcomplete event within the main application i
> > > > create an eventlisteners for the event
> > > > 
> > > > addEventListener("loadModule", loadThisModule);
> > > > 
> > > > the loadThisModule function simple trace a string..
> > > > 
> > > > but it doesn't work!!Why?
> > > > 
> > > > Thanks in advance
> > > > 
> > > > Regards Lorenzo
> > > >
> > > thanks for the reply..
> > > 
> > > CustomLoadEvent is a custom event, it extends Event class...but
> > > doesn't work..i don't know why...
> > > in this class i also override the clone method...
> > > 
> > > the CustomLoadEvent class has a public properties...i omit it in
> > > dispatchevent function for simplicity..
> > > 
> > > the function loadThisModule catchs the event in this manner
> > > 
> > > private function loadThisModule(event:CustomLoadEvent):void{
> > > trace(event.identification);
> > > }
> > > where identification is the public property of customloadevent
class.
> > > 
> > > thanks in advance
> > > 
> > > Regards Lorenzo
> > >
> >
> the first two assumptions are correct...
> 
> so when i use popmanager i cann't listen to popup event in the event
> flow chain, is it correct?
> 
> thanks again
> 
> Regrads 
> Lorenzo
>


Reply via email to