flex sdk compile time variables, switches and resources Hacks
Tuesday, December 9th, 2008Super nice article on how to create a compiletime conditional switch for for ex. calling an alternate version of the same function or adding compiletime var-values at with the flex sdk command line http://code.awenmedia.com/node/34 Code examples from his site: ADDING COMPILETIME VARS: mxmlc MyConfigClass.as -define+=CONFIG::someSetting,true or ...-define+=CONFIG::myString,"'Hello!'" -define+=CONFIG::myNumber,"7" for someSetting the AS3 class would be: package { public class ...