[Typo mistake]
ccsCoder * !!!!
For example in the properties of your Flex project in the Flex Compiler zone you have the following compile arguments:
-locale en_US -define+=CONFIG::development,true
and in code you can use it like this:
CONFIG::development {
// this is a conditional compile block
usernameTextInput.text = "myusername";
passwordTextInput.text = "mypassword";
}This means the because in the compile arguments we have CONFIG::development,true (which means that CONFIG::development is true) the code lines inside CONFIG::development{ } block will be compiled in the application.
If instead we have CONFIG::development,false (which means CONFIG::development is false) the code lines inside CONFIG::development{ } block will not be compiled.
So, using…
You can define any conditional compile variable but you need to keep the CONFIG name space, like this:
-define+=CONFIG::myvar,true
-define+=CONFIG::debug,false
-define+=CONFIG::othervar,true
This is it, kind of simple.