This compiles OK but fails at this point in the class: this[i]=new Array(numCols);
with the error: Cannot create property 0 on [the class] i.e i being 0 on the first for loop when calling: var a:MatRix = new MatRix(3,3);
This compiles OK but fails at this point in the class: this[i]=new Array(numCols);
with the error: Cannot create property 0 on [the class] i.e i being 0 on the first for loop when calling: var a:MatRix = new MatRix(3,3);