Ah, good point Ian.
Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ian Thomas Sent: Tuesday, August 04, 2009 11:30 AM To: Flash Coders List Subject: Re: [Flashcoders] MVC and Event Architecture On Tue, Aug 4, 2009 at 4:24 PM, Dave Watts<[email protected]> wrote: >> The real point is that to call public methods, you have to know about the >> object whose method you want to call and you need to know about the method >> itself. When you broadcast an event, you don't need to know whose listening, >> your just indicating that something meaningful has happenned and perhaps >> also passing data that is meaningful. > > This is really the key. If you don't do this, you're baking > dependencies into your application. And also potentially compilation dependencies, if, for example, you later decide to split your app into modules then you'd have to include the target of the method call across both the relevant modules (or do something with interfaces instead). Ian _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

