Code: var oArray:Array = new Array(new Array(), new Array());
for (var i:uint=0; i<numChildren; i++)
{
getChildAt(i).addEventListener(MouseEvent.MOUSE_DOWN,down);
// how to push array values into a multi-dimensional array?
oArray[i][0] = getChildAt(i).x;
oArray[i][1] = getChildAt(i).y;
//
}
trace(oArray[1][0] + " " + oArray[1][1]);How can I push values into a multi-dimensional array?
Push values into a multi-dimensional array?
Thursday, July 5, 2012
[Action Script] Push values into a multi-dimensional array? July,2012
Posted by Bimo Hery Prabowo at 3:13 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment