snix123
asked on
Looping thru 2 dim array
Hi experts:
I have an array in Actionscript 3.
private var myArray:Array = [ [1.2,3.4],
[7.8,10.4],
[12.2,1.0]];
I would like to be able to get the first element, the point 1.2, 3.4, in a loop. When I try this I get a large error.
I would like to do this:
for (var i:uint; i < myArray.length; i++) {
point = myArray[i,0];
point2 = myArray[i,1];
etc.
}
Thoughts?
I have an array in Actionscript 3.
private var myArray:Array = [ [1.2,3.4],
[7.8,10.4],
[12.2,1.0]];
I would like to be able to get the first element, the point 1.2, 3.4, in a loop. When I try this I get a large error.
I would like to do this:
for (var i:uint; i < myArray.length; i++) {
point = myArray[i,0];
point2 = myArray[i,1];
etc.
}
Thoughts?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER