I have projects that use config constants to provide configuration based variations. But every place I use them shows as an error.
The error is "Unresolved variable or type CONFIG" no matter how I use it. For example:
CONFIG::air
private var _orientation : int;
or:
private function setup() : void
{
addEventListener(MouseEvent.MOUSE_MOVE, moved);
if (CONFIG::air)
{
// respond the initial touch on a tablet
addEventListener(MouseEvent.MOUSE_DOWN, moved);
}
}
In all cases "CONFIG" is highlighted in red and the rest ("::air") is black.
Does anybody know a way to resolve the error?