For me, its not a question of "how many". I group by variables based on applications and sometimes based on applications areas.
the initialize method is just to be sure your vars exist when u need them. I initialize them when I know they've never been created before (it depends on the application). It can be done it my ViewHelper or in a view itself (i prefer doing on ViewHelpers). For the storing question, yes, for the same application I have a model folder with all my application "modelLocators". -----Original Message----- From: flexcoders@yahoogroups.com on behalf of fowleryj Sent: Tue 04-Oct-05 9:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm ModelLocator Joao, - Roughly how many variables do you have in each ModelLocator? - Where are you calling each ModelLocator's initialise() method? (In your Main.mxml class, or in a particular ViewHelper whose mxml will need the variables in that particular ModelLocator?) - Have you kept all of the ModelLocators in your "model" folder? Thanks! --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > I'm using several Models with no problems. > Till now I had no problem dealing with several files. > > -----Original Message----- > From: flexcoders@yahoogroups.com on behalf of fowleryj > Sent: Tue 04-Oct-05 8:21 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Cairngorm ModelLocator > > Is the ModelLocator intended to be the *only* global repository for > variables to which you'll need to bind throughout your application? My > ModelLocator is getting huge, and I would like to split it into a few > ModelLocators (with different names, obviously). Has anyone done this? > Are there any caveats of which I should be aware? How have others > dealt with their ModelLocator's large size? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
<<winmail.dat>>