HI!
I’d like to create an array of integer arrays like this:
var fieldContents :int[][];
But this schows me a compiler error. (Sorry I’m still used to Java not javascript ;D )
HI!
I’d like to create an array of integer arrays like this:
var fieldContents :int[][];
But this schows me a compiler error. (Sorry I’m still used to Java not javascript ;D )
Use:
var fieldContents :int[,] = new int[2,3];
and later on:
fieldContents[0,0] = 17;
fieldContents[1,2] = 42;