Question

I've a batch script which is used to build my flex project. This script sets all the necessary info required to build the project. In this script .mxml file is compiled using mxmlc.I want to add an argument which can be then read by .mxml file. This argument will be used to make runtime decisions.

Any idea on how this can be done?

Was it helpful?

Solution

The term you're looking for is called conditional compilation.
There's no point in describing how it works here, since it's pretty well covered in the Adobe docs on the subject.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top