Re: [flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-11 Thread Andriy Panas
You can use composition to acquire the functionality of EventDispather, in other words add the instance of EventDispatcher class as a property of your VO class More on this: http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.html

Re: [flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-11 Thread dorkie dork from dorktown
thank u! On Sun, Jul 11, 2010 at 4:16 AM, Andriy Panas a.pa...@gmail.com wrote: You can use composition to acquire the functionality of EventDispather, in other words add the instance of EventDispatcher class as a property of your VO class More on this:

[flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-10 Thread dorkie dork from dorktown
Is there a way to dispatch an event from a class that doesn't extend EventDispatcher? For example, lets say you have 30 different value object classes. You want to have one method called invalidateData() that dispatches an event to get the latest content from the server. Since I want to keep the