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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top