Re: [flexcoders] Cairngorm and MVC: Quickie

2006-08-23 Thread Tom Chiverton
On Wednesday 23 August 2006 02:03, Darren Houle wrote: Very true. Alternatively you could create these three data structure within the one ModelLocator and refer to them like... model.biz.userRole = ... model.core.adminViewStackState = ... model.icon.deleteButton = ... I would tend to go

RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-22 Thread Darren Houle
Start off with one model for your app and as your application grows, you will probably see the need to refactor. At that time, create a second model and so on and so forth. Just to give u a quick idea, I have 3 models in my current project: BizModel - hold main data that actually goes back and

RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-21 Thread Bjorn Schultheiss
Yes, although i have heard of succesful implementations that use more than 1 controller and locator. I think that, that is the idea until it doesn't satisfy your requirements anymore Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com

RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-21 Thread Darren Houle
Yup, you got it. To be even more specific... 1:N Views A) bind to data in the 1 ModelLocator (which contains 0:N Models/VO's) and B) broadcast 1:N Events to the 1 FrontController which maps Events to 1:N Commands which may create 0:N Delegates which trigger 0:N Services (using

RE: [flexcoders] Cairngorm and MVC: Quickie

2006-08-21 Thread Dimitrios Gianninas
Start off with one model for your app and as your application grows, you will probably see the need to refactor. At that time, create a second model and so on and so forth. Just to give u a quick idea, I have 3 models in my current project: BizModel - hold main data that actually goes