# Can't get my multidimensional array to work

**URL:** <https://forum.kirupa.com/t/cant-get-my-multidimensional-array-to-work/253831>\
**Category:** Uncategorized\
**Created:** [March 5, 2008, 3:41pm UTC](https://forum.kirupa.com/t/cant-get-my-multidimensional-array-to-work/253831 "2008-03-05T15:41:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldmanwinter](https://avatars.discourse-cdn.com/v4/letter/o/b38774/32.png) [@oldmanwinter](https://forum.kirupa.com/u/oldmanwinter)\
**Post date:** [March 5, 2008, 3:41pm UTC](https://forum.kirupa.com/t/cant-get-my-multidimensional-array-to-work/253831/1 "2008-03-05T15:41:44Z")

</div>

so i tried declaring a multidimensional array and testing it with the following code:

```auto
var tpoint:Array = new Array(new Array());
tpoint[1][2]=7;
trace(tpoint[1][2]);

```

but the output is undefined. if i replace both the 1’s and the 2’s with 0’s, then it outputs a 7… so what am i doing wrong here? in the tutorials about MD arrays that i’ve read, the author always declares his arrays as a list, but the variables in my array are going to be declared dynamically, so i don’t know how to go about it…
