maybe a silly question, but here i go anyway:
how would you write something like this in actionscript:
int matrix[3][3];
for(i=0;i<3;i++)
for(j=0;j<3;j++)
matrix[i][j]=0;
i've done something like this in my code, mtasc doesnt complained, but
the program doesnt work, and i have a feeling that something wrong.
This has been answered twice, but without explaining *why* it works this
way. The fact is, there are no multidimensional arrays in AS (ECMA). What
you have instead is an array of arrays. As such, the child arrays must be
declared before they can have elements assigned to them.
ryanm
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders