ANT Compile-Time Constant Error: Vector

Just got hit with this error again and its a silly oversight but blogging it may be of some help to someone. If your compiling your Flex application using ANT and you get the following compile-time constant error:

[compc] Error: Type was not found or was not a compile-time constant: Vector.

Then ensure you have specified a SWF version of 10 in your target-player param i.e.

build.properties

1
swf.version = 10.0.0

build.xml

1
target-player="${swf.version}"

Comments