grime- I am defining those three functions at the top like that and the class is communicating with a class that extends the UIComponent class.
On 3/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I may be wrong, but this is how i understand it:-- > > EventDispatcher is to be used when communicating to / from / between V2 > Components, eg between the View and Control layers of your app. A > non-component (eg, in the Control layer) can fire an event to a component > listener, but you need to define the following properties for the > non-component class:- > > private var dispatchEvent : Function; > public var addEventListener : Function; > public var removeEventListener : Function; > > If you need to send events between non-components, eg in the Model layer, > use the intrinsic AsBroadcaster class. > > Hope that helps > > Codegadget > > --- On Thu 03/23, Manuel Saint-Victor < [EMAIL PROTECTED] > wrote: > From: Manuel Saint-Victor [mailto: [EMAIL PROTECTED] > To: flashcoders@chattyfig.figleaf.com > Date: Thu, 23 Mar 2006 10:23:21 -0500 > Subject: [Flashcoders] EventDispatcher being un-initialized > > I have a Singleton that I am trying to l have dispatch events but for > somereason even though I use EventDispatcher.initialize(this); in my > constructor it is not dispatching. I am finding that if Ireinitialize it > within my method call that it is able to dispatch once againbut this seems > to me like a waste of resources. Has anyone encountered asimilar > problem?Thanks, > [EMAIL PROTECTED] your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcodersBrought to you by > Fig Leaf SoftwarePremier Authorized Adobe Consulting and > Traininghttp://www.figleaf.comhttp://training.figleaf.com > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com