Hi could anyone help me i need to turn this string into a array "070033,070031,070032" dose anyone know how to do this
would love the help.
Thanks
Hi, if you want to split that string in the three parts separated by comma you hould do this:
var someString:String = "070033,070031,070032";
var myArray:Array = someString.split(",");
The split method allows you to literally split a string using as a separator a string character passed as a parameter to the method. In this case, I passed the "," (comma) as a string separator, the methor returns an array, so your array myArray will be filled now this way:
myArray[0] = 070033
myArray[1] = 070031
myArray[2] = 070032
Kind regards.