views:

56

answers:

1

I've got the following Flex code in an MXML file:

<mx:Label id="lblVersion" styleName="versionID" bottom="0" right="10" text="Version { BUILD::version }"/>

where the "BUILD::version" is meant to be substituted from symbols defined in compiler options:

 -define BUILD::version "'LOCAL'"

The Flex plugin doesn't seem to understand the compiler option usage syntax and flags "BUILD" and "version" as "unresolved variable or type"

Is there a way around this problem?

Thanks!

A: 

I got the answer from the IDEA forum:

Symbol definitions ("-define foo::bar" in the FlexBuilder "Additional compiler arguments" should be defined in the "Conditional compilation definitions" field of the IDEA facet (on the Advanced tab).

Conditional compilations definitions ("-define foo::bar") in the "Additional compiler options" field of the IDEA Flex facet are ignored.

Mark Laff