Kevin,

I tried both 1 and two and they both worked. I am going to go with option 2. 
Thanks for 
your help!

Roger

--- In [email protected], "Kevin" <[EMAIL PROTECTED]> wrote:
>
> If you want to dispatch the event from the delegate, then you need to
> extend the delegate so listeners can be attached, or create a public
> instance of an EventDispatcher class and have your listeners listen to
> that.  I remember trying a lot of different ways of 'bubbling' the
> event up through the chain, but it never worked.
> 
> 1. So, create a public eventDispatcher:
>   [Bindable]
>   public var eDispatcher : EventDispatcher = new EventDispatcher();
> 
>   in delegate code do:
>   eDispatcher.dispatchEvent(resetModule);
> 
>   then listeners would look like:
>   SPODetailUpdDelegate.eDispatcher.addEventListener(...);
> 
> OR....
> 
> 2. Just extend your delegate class to EventDispatcher and then you can
> dispatch off the class itself (instead of a public var).
> 
>   public class SPODetailUpdDelegate extends EventDispatcher
> 
> OR....
> 
> 3. Create a new Event Dispatching singleton/static class specific to
> those processes listening to that event. E.g. - FormCleanupDispatcher
> or whatever...
> 
> Lots of options.  I'm not using Cairngorm either, but this is what I'd
> do. And if you're not building a super huge component/project, I'd
> just do option 2.
> 
> - Kevin
>



Reply via email to