R – Vector class in a Flex Library Project

actionscriptapache-flexswcvector

i seem to be having some problems with the Vector class in actionscript 3

in a Flex Project or an ActionScript Project it is possible to do this

var v:Vector.<String>;

But when i do the same thing in a Flex Library Project (to create an SWC)
then i get the following error on that line of code
1046: Type was not found or was not a compile-time constant: String.

so when using Flex Library Project it fails…, but when i compile the same thing using compc there are no problems

any idea why only the library project is complaining about Vector ?

btw this happens with all kinds off Vector declarations , not just String

var v:Vector.<String>
var v:Vector.<Number>
var v:Vector.<Object>

etc, all fail…

(i am using flex 4 sdk)

Best Answer

You might need the latest Player Globals SWC: http://labs.adobe.com/downloads/flashplayer10.html

Similar to this issue?

Related Topic