So you are basically saying that every single time you want to use
something in another class, you should dispatch an event.
No, that's not what I'm saying, if you want/need to use something in
another class, you can call it directly. For example, Math.floor() or
myPersonInstance.jump().
Exactly. Encapsulation FTW.
Merrill, Jason wrote:
A bunch of smart stuff about not breaking encapsulation
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven
Sacks
Sent: Wednesday, November 18, 2009 3:06 PM
To: Flash Coders List
Subject: Re: [Flashcoders] one class listening for
anotherclassesdispatchedevent
Exactly. Encapsulation
3 matches
Mail list logo