[flexcoders] Using dispatchEvent ?

2009-01-11 Thread biosmonkey
I thought I had understood the event model, but apparently not. I have a custom class that extends EventDispatcher, let's call it MyClass. This class will periodically dispatch a custom event based on a timer and some condition. In my main app, I instantiate an instance of this class. I also cr

Re: [flexcoders] Using dispatchEvent ?

2009-01-11 Thread Josh McDonald
Event bubbling only occurs within the display list. So your dispatching object must also be a child UIComponent if you want to catch bubbled events. -Josh On Mon, Jan 12, 2009 at 4:12 PM, biosmonkey wrote: > I thought I had understood the event model, but apparently not. > > I have a custom cla

Re: [flexcoders] Using dispatchEvent ?

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 11:42 AM, biosmonkey wrote: > In my main app, I instantiate an instance of this class. I also > create an event listener at the application level. > > Here's the problem: > > * If I use dispatchEvent(...) inside MyClass, the event listener in > the main app never fires (t