New Class.  For example, for GUI related things (skin names, image 
locations, mp3 locations, etc.) and other various graphical thigns that have 
absolutely nothing to do my apps logic, but are very important for it to 
actually look right, and sometimes work, I just put in a constants.

class com.project.model.ViewConstants
{
    static var IMAGE_DIR:String = "images";
}

You could even put it into View if you wanted.

I have the same thing for application configurations; where to read my 
static XML files, if I have a local username stored in an XML file or if I 
should ignore Application vars (variables appended the URL).  Stuff like 
that is kept in a Constants file and usually only used by Controller 
classes.

You can even nest your package(s)  if you want in model.  Up to you really.

----- Original Message ----- 
From: "fowleryj" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, October 04, 2005 3:21 PM
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 --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
 


Reply via email to