[Flashcoders] Q:Inheritance issue with simplified MVC

2006-11-08 Thread moveup
I'm having an issue with a simplified MVC implementation. I have a 'model' class which parses XML and dispatches a 'build' event when finished parsing. I have a 'view' class which has a reference to this model class via composition and is also registered as a listener When the view receives

Re: [Flashcoders] Q:Inheritance issue with simplified MVC

2006-11-08 Thread Anthony Lee
Hi Jim, Don't think you can get around listening to for the event unless you want to get into callbacks... How's this though? Requires GDispatcher in the Model. --- class AbstractWidget { var localData:Array; var provider:Model; var build:Function; //--child