> <mx:app> - event never gets here
> <mx:customComponent> - this tabcontainer handles it just fine
> <mx:customComponent /> - this is a popup titlewindow which dispatches the 
> event
> </mx:customComponent>
> </mx:app>
>
> I dispatch the event from the popped-up titlewindow.

If you are really using PopUpManager, then the hierarchy you show isn't 
correct. A popped-up titlewindow is a child of the SystemManager, not a child 
of the TabContainer or a grandchild of the Application, and neither the 
TabContainer nor the Application should get a bubbled-up event from a popup.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of Magnus Lassi
Sent: Sunday, August 16, 2009 6:18 AM
To: [email protected]
Subject: Re: [flexcoders] Re: Event Best Practices



that may be why you doesn't fire:

http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html

You are required to override the Event.clone() method in your subclass. The 
clone() method returns a cloned copy of the event object by setting the type 
property and any new properties in the clone. Typically, you define the clone() 
method to return an event instance created with the new operator.
On Sun, Aug 16, 2009 at 2:15 AM, jdizowat 
<[email protected]<mailto:[email protected]>> wrote:


It is a custom event and I did not override clone().


--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Magnus 
Lassi <magnus.la...@...> wrote:
>
> I don't see the event mentioned, is it a custom event you created or an
> event in the framework? If it's a custom event, did you override the clone
> function?
>
> On Fri, Aug 14, 2009 at 3:15 PM, jdizowat <jasonharr...@...> wrote:
>
> >
> >
> > Thanks for all the help. I have exactly what you said, Jake. A little more
> > info -
> >
> > I have the following:
> >
> > <mx:app> - event never gets here
> > <mx:customComponent> - this tabcontainer handles it just fine
> > <mx:customComponent /> - this is a popup titlewindow which dispatches the
> > event
> > </mx:customComponent>
> > </mx:app>
> >
> > I dispatch the event from the popped-up titlewindow. I have bubbles=true.
> > I'm sorry, I'm not understanding why the event isn't making it up to the
> > application level. I even tried taking out the event listener on the next
> > level up. What now? I know what I'm reading up on this weekend :)
> >
> >
> >
>


Reply via email to