Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

ASC2 and Compiler Constants

$
0
0

Looks like when using ASC2 with Air 3.8 Compiler Constants do not behave like they were before.

 

for example:

you can still do something like this:

 

if(CONFIG::myConst){

     //do stuff

}

else{

     //other stuff

}

 

Although now it will always compile both the if and the else.

So now the only way around this is doing something like this:

 

CONFIG::myConst

{

     //do stuff

}

 

CONFIG::oppositeOfMyConst

{

     //other stuff

}

 

 

Is there any workaround this?


Viewing all articles
Browse latest Browse all 2010

Trending Articles



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