Ive been trying to get this piece of code to work
doors = new Array(4);
for (var i=0; i<4; i++) {
myArray* = new Array(8);
for (var j=0; j<8; j++) {
myArray*[j] = new Array(8);
}
}
doors[1][7][6]={newX:1, newY:6, newMap:2};
doors[2][0][6]={newX:6, newY:6, newMap:1};
doors[2][4][0]={newX:4, newY:6, newMap:3};
doors[3][4][7]={newX:4, newY:1, newMap:2};
trace(doors[1][7][6]);
But the trace always comes out to be undefined.
Also, I have searched, and the basis for that code is (working) code from one of the results I found when I searched, any help wuld be appreciated.
Thanks in advance!