  | | | Event Dispatcher between classes | Event Dispatcher between classes 2004-03-15 - By Erik Bianchi
Back Take a look at using the MVP design pattern. Sounds like you just need to work on your architecture a bit and this pattern will help resolve this for you.
Basically a Presenter would be responsible for initializing your components/classes and hooking them together. When using MVP that relationship would be hooking the model and view together. The Model being the broadcaster(subject) and the view listening to the broadcast(observer).
hope that helps.
-erik -- -- Original Message -- -- From: "Jens L?ffler" <jensloeffler@(protected)> To: <flashcoders@(protected)> Sent: Monday, March 15, 2004 4:01 PM Subject: [Flashcoders] Event Dispatcher between classes
> Hi, > > does anyone know what's the best way to use the Event Dispatcher between two > classes to send messages? I've initalized the sending class in the > constructor with eventdispacher, and extended the listening class to a > movieclip, so a public function can be used to receive the message, but it's > doesn't really work. Is there any standard way? (I don't want to use code > outside the classes) > > Jens > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ > Sch?tzen Sie Ihren Posteingang vor unerw?nschten E-Mails. > http://www.msn.de/antispam/prevention/junkmailfilter Jetzt > Hotmail-Junk-Filter aktivieren! > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Supported by Fig Leaf Software > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Be sure to check the archives and the wiki: > http://chattyfig.figleaf.com/ > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107037 > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe send a blank e-mail to: > Normal Mode: flashcoders-unsubscribe@(protected) > Digest Mode: flashcoders-digest-unsubscrive@(protected)
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107040 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |