# Multidimensional Length

**URL:** <https://forum.kirupa.com/t/multidimensional-length/73481>\
**Category:** flash\
**Created:** [December 16, 2004, 7:26pm UTC](https://forum.kirupa.com/t/multidimensional-length/73481 "2004-12-16T19:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiliaan856](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kiliaan856](https://forum.kirupa.com/u/kiliaan856)\
**Post date:** [December 16, 2004, 7:26pm UTC](https://forum.kirupa.com/t/multidimensional-length/73481/1 "2004-12-16T19:26:26Z")

</div>

Hi, im sure this is really simple but for some reason I have not found any helpful info on this. I am trying to get the length of arrays within an array, here is my example (MX 2004):

this.menu.o= [“option1”,"",“container”],[“option2”,"",“container”];  
context=“o”;

trace(this.menu[context].length);

I get an output of of 3. the number of variables within the first array, this is not what I had expedted. Any help in pointing out my error would be much appreciated.
