# \[MX2004\]array problems

**URL:** <https://forum.kirupa.com/t/mx2004-array-problems/82550>\
**Category:** flash\
**Created:** [March 11, 2005, 3:44am UTC](https://forum.kirupa.com/t/mx2004-array-problems/82550 "2005-03-11T03:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mythmon](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mythmon](https://forum.kirupa.com/u/Mythmon)\
**Post date:** [March 11, 2005, 3:44am UTC](https://forum.kirupa.com/t/mx2004-array-problems/82550/1 "2005-03-11T03:44:18Z")

</div>

Ive been trying to get this piece of code to work

```auto

doors = new Array(4);
for (var i=0; i<4; i++) {
        myArray* = new Array(8);
        for (var j=0; j<8; j++) {
                myArray*[j] = new Array(8);
        }
}

doors[1][7][6]={newX:1, newY:6, newMap:2};
doors[2][0][6]={newX:6, newY:6, newMap:1};
doors[2][4][0]={newX:4, newY:6, newMap:3};
doors[3][4][7]={newX:4, newY:1, newMap:2};
trace(doors[1][7][6]);

```

But the trace always comes out to be undefined.

Also, I have searched, and the basis for that code is (working) code from one of the results I found when I searched, any help wuld be appreciated.

Thanks in advance!
