Hi, how can i create a 2D array that has “emptyslot” initially stored in every of its slot. My code is:
grid = new Array();
for (j=1;j<=10;j++){
for (i=1;i<=6;i++){
grid*[j] = “emptyslot”;
}
}
Then i did the trace on a blank movieclip:
onClipEvent (enterFrame){
trace(grid);
}
It returned:
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
etc etc…