How does the controller know about each command class? Is each instantiated by the controller? Do the command classes talk directly to the model or view or back through the controller?
On 3/15/12 4:44 PM, "Peter Ginneberge" <p.ginnebe...@telenet.be> wrote: ============================================== The controller then maps the different event types to Commands: // AppController: private function initCommands():void { addCommand(NewsEvent.GET_NEWS, GetNewsCommand); addCommand(NewsEvent.UPDATE_NEWS, UpdateNewsCommand); addCommand(NewsEvent.ADD_NEWS, AddNewsCommand); addCommand(NewsEvent.DELETE_NEWS, DeleteNewsCommand); // etc.. } ============================================== addCommand (not included) does an addEventListener and maps it to the command class for later execution (when the event is triggered). _ _ _ Erik Mattheis | Weber Shandwick P: (952) 346.6610 M: (612) 377.2272 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders