# Multidimensional Array basics

**URL:** <https://forum.kirupa.com/t/multidimensional-array-basics/311766>\
**Category:** flash\
**Created:** [July 15, 2010, 7:51pm UTC](https://forum.kirupa.com/t/multidimensional-array-basics/311766 "2010-07-15T19:51:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [July 15, 2010, 7:51pm UTC](https://forum.kirupa.com/t/multidimensional-array-basics/311766/1 "2010-07-15T19:51:51Z")

</div>

Hey there … using AS2, I want to add some data to some array.  
And then within each part of data in the array, it holds its own data.  
By using MD\_arys I thought this be the best approach.

```auto
var MD_ary:Array = new Array(new Array(),new Array());

```

effectively gives MD\_ary[][] - ie an empty MD array … so I add data…

```auto
MD_ary[0][0].push("test","data");

```

by tracing this, only the “test” comes out …  
How do I push into the ‘2nd’ array in the MD\_ary ???

cooool for help  
thanks:write:
