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!


Reply via email to