# What is it in AS3

**URL:** <https://forum.kirupa.com/t/what-is-it-in-as3/283386>\
**Category:** Uncategorized\
**Created:** [March 5, 2009, 2:39pm UTC](https://forum.kirupa.com/t/what-is-it-in-as3/283386 "2009-03-05T14:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geee](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@geee](https://forum.kirupa.com/u/geee)\
**Post date:** [March 5, 2009, 2:39pm UTC](https://forum.kirupa.com/t/what-is-it-in-as3/283386/1 "2009-03-05T14:39:49Z")

</div>

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:

```auto

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…

?
