Below is a method to populate a vector with a list of strings
var vector:Vector.<String> = new <String>["abc","def"];
However, I have an existing array that contains a list of strings.
How would I transfer those contents within the array into the vector?
The basic way I can think of is using a for loop, and push the values in.
var array:Array = ["1,2,3","4,5,6"];
var vector:Vector.<String> = new <String>[];
for (var i:int = 0; i< array.length; i++)
{
vector.push(array*);
}
trace(vector[0]); //traces 1,2,3
Are there any other alternatives?