Re: [flexcoders] Dispatching an Event from a Class

2007-01-12 Thread Oliver Tupman
Hey Mike, If I've understood the previous mails correctly you wish to implement IEventDispatcher in a class that already derives from another? (i.e. your ModelLocator). If this is the case, then in your class that implement IEventDispatcher you want to create an instance of EventDispatcher, for

[flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Mike Anderson
Hello All, I am attempting to dispatch an Event from a generic Class File, and I guess I'm not doing it correctly. I was hoping, that I could simply do this: import mx.events.IEventDispatcher And then in my function, I could simply dispatch the event like this:

Re: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Sergey Kovalyov
Just call dispatchEvent() (e. g. dispatchEvent(new Event(Event.CHANGE))) in any class that implements IEventDispatcher (e. g. all the EventDispatcher successors). Note, that UIComponent and all its successors implement IEventDispatcher, so dispatchEvent() could be called in any subclass of Box,

RE: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Tracy Spratt
somewhere. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Tuesday, January 09, 2007 2:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dispatching an Event from a Class Just call dispatchEvent

RE: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Mike Anderson
: [flexcoders] Dispatching an Event from a Class Just call dispatchEvent() (e. g. dispatchEvent(new Event(Event.CHANGE))) in any class that implements IEventDispatcher (e. g. all the EventDispatcher successors). Note, that UIComponent and all its successors implement IEventDispatcher, so dispatchEvent

Re: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Sam Shrefler
*Subject:* Re: [flexcoders] Dispatching an Event from a Class Just call dispatchEvent() (e. g. dispatchEvent(new Event(Event.CHANGE))) in any class that implements IEventDispatcher (e. g. all the EventDispatcher successors). Note, that UIComponent and all its successors implement IEventDispatcher, so

RE: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Mike Anderson
] On Behalf Of Sam Shrefler Sent: Tuesday, January 09, 2007 7:19 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dispatching an Event from a Class Mike, I'm interested in why you would dispatch an Event from your modelLocator? Could you please share? Also, could this be a case where