Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Event Dispatcher between classes

Event Dispatcher between classes

2004-03-15       - By Erik Bianchi

 Back
Reply:     1     2     3     4     5     6  

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)