Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Actionscript config constants in source

$
0
0

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?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>