RE: [Flashcoders] one class listening for anotherclassesdispatchedevent

2009-11-18 Thread Merrill, Jason
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().

Re: [Flashcoders] one class listening for anotherclassesdispatchedevent

2009-11-18 Thread Steven Sacks
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

RE: [Flashcoders] one class listening for anotherclassesdispatchedevent

2009-11-18 Thread Merrill, Jason
- 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