I’m using AS 2.0 - Can anyone point me to some info on using matrices?
I want to store sets of points in an array like so:
arrP = [[0,0],[50,0],[50,50],[0,50]];
How would I declare an array like that? And do I access it the same way as any other programming language? Ex: if(arrP[0][0] == 0)
The way I’m using it now I just declare var arrP = new Array(); Not sure if that works for a two dimensional array as well.
And for accessing/altering I’m using arrP*[0] or arrP*[1].
I’m pretty sure my problem is with the declaration.