I would advise against one big global constants file. Generally not an OOP thing to do.
I would use static consts on classes. Look at any mx.events.* class to see ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of edlueze Sent: Wednesday, July 09, 2008 4:42 PM To: [email protected] Subject: [flexcoders] Setting Up a Global Constants File I'm trying to fill a file full of global constants that will be used by all the other ActionScript files in my project. If I create an ActionScript file and start filling it with constants then when I try and reference that file from several others I run into the error "A file found in a source-path can not have more than one externally visible definition". On the other hand, I could create a singleton class but then a reference to a simple global constant becomes long and unreadable: for example "SingletonClass.getInstance().myConstant". What's the best practice in this situation? Thanks!

