Arrays slicing problem

Hi, i have problem with Arrays in JS.
I have somting like this:

private var Bloki;

function Awake (){
	Bloki = new Array(Rozmiar);
	for (var i:int=0;i<=Rozmiar-1;i++){
		Bloki[i] = new Array(Rozmiar);
		for (var j:int=0;j<=Rozmiar-1;j++){
			Bloki[i][j] = new Array(warstwy);
			for (var k:int=0; k<=warstwy-1; k++){
				Bloki[i][j][k]=null; //slicing 
			}
			Bloki[i][j][3] = 0; //slicing
		}
	}
}

for WEB, PC/MAC/LINUX build it is ok. but when i switch to android i have errors with: Type ‘Object’ does not support slicing. → for variable Bloki.

try switching to a List, js arrays aren’t great
http://wiki.unity3d.com/index.php?title=Which_Kind_Of_Array_Or_Collection_Should_I_Use%3F

hpjohn could You wrote a sample how to use it as multidimentional arrayList??
It will be nice on my sample code… Its sampler to learn somting on sample - when You know how its work.

Thx

Well alright, for a multidimension array, id use someType[,] arrays (builtins), not js arrays, not arraylists.

(it looks like you want ints so)
you need to know what size the array is at each level, and use that in the constructor, if you have a map that is 10x10x4 then use
Bloki = new int [10,10,4];
then you can access each ‘cell’ of the array with Bloki[0,0,0]… Bloki[4,7,1]…