Tuesday, June 5, 2012

[Action Script] Trouble with Multidimensional Arrays? June,2012

ActionScript Code: newData = "1:0,2:3,5:4";array1 = newData.split(",");for (i = 0; i < array1.length; i++) {    trace(i + " = " + array1[i].split(":"));    var newarray:Array = array1[i].split(":");    value of " + newarray[1])    _root.arrayt2[i] = newarray;}trace(_root.arrayt2[0]); Every time it traces undefined. This is the first time I've worked with multidimensional arrays. Can anyone tell me what am I doing wrong?
Trouble with Multidimensional Arrays?

Related Post



0 comments: