title: Vector class in a Flex Library Project
body: <p>i seem to be having some problems with the Vector class in actionscript 3</p>
  
  <p>in a Flex Project or an ActionScript Project it is possible to do this</p>
  
  <pre><code>var v:Vector.&lt;String&gt;;
  </code></pre>
  
  <p>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.</p>
  
  <p>so when using Flex Library Project it fails..., but when i compile the same thing using compc there are no problems</p>
  
  <p>any idea why only the library project is complaining about Vector ?</p>
  
  <p>btw this happens with all kinds off Vector declarations , not just String</p>
  
  <pre><code>var v:Vector.&lt;String&gt;
  var v:Vector.&lt;Number&gt;
  var v:Vector.&lt;Object&gt;
  </code></pre>
  
  <p>etc, all fail...</p>
  
  <p>(i am using flex 4 sdk)</p>