Fellow Brent ... You need to use the Global Vector() function:
var blahVector:Vector.<String> = Vector.<String>(String("blah1 blah2 blah3").split(" ")); More info: http://livedocs.adobe.com/flex/3/langref/package.html#Vector() On Fri, Nov 28, 2008 at 10:28 PM, Brent Marshall <[EMAIL PROTECTED]>wrote: > One thing I cannot find any documentation on is how to push a Split > direct to the Vector Class. Is it possible? > > //Results in VerifyError: Error #1033: Cpool entry 34 is wrong type. > var s:String = "a,b,c"; > var v:Vector.<String> = new Vector.<String>(s.split(",")); > > I can correctly set the data using a "for each" loop. Just wondering > if there's a way to skip a step. > > Are the speed benefits of using the Vector Class seen mostly when > accessing, or setting the data? > > Thanks for your help, > > Brent Marshall > http://www.eightlines.com/blog/ > > >