Converting a String into an Array
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var sValue:String = "a,b,c,d,e,f";
var aValues:Array = sValue.split(",");
for (var i = 0; i < aValues.length; i++){
trace(aValues[i]);
}
}
}
}
a
b
c
d
e
f
Related examples in the same category