Question
Where/how should I store static variables?
I have a Cairngorm project that reuses a specific value throughout the application (i.e. as an argument for several WebService calls). Where/how should I store/access this value? What is the best practice?
Right now, I am storing the value as a static public variable in the Model:
[Bindable]
public class ModelLocator
{
static public var __instance:ModelLocator = null;
static public var APP_CLASS_ID:int = 4;
}
And accessing it through the Class:
ClassIdNmb: ModelLocator.APP_CLASS_ID
Right now, I am storing the value as a static public variable in the Model:
[Bindable]
public class ModelLocator
{
static public var __instance:ModelLocator = null;
static public var APP_CLASS_ID:int = 4;
}
And accessing it through the Class:
ClassIdNmb: ModelLocator.APP_CLASS_ID
