Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top