What is it in AS3

hi,

as former Java-developer I´m now switching to AS3. I´ve done a lot in AS3 already, but at odd times I´m having problems to convert Java related language to AS3.

For instance:



double cache[][][];
cache = new double[depth+1][depth+1][depth+1];


for (int x=0; x<=depth; x++) {
       
     for (int y=0; y<=depth; y++) {
                
          for (int z=0; z<=depth; z++) {
                   cache[x][y][z] = getValue(x,y,z);

          }
    }
}


function getValue(int x, int y, int z) { double retVal = 0.0, return retVal;}

how would i simplified do the same in AS3…

?