# Multi-Dimensional Arrays and attachMovie

**URL:** <https://forum.kirupa.com/t/multi-dimensional-arrays-and-attachmovie/181604>\
**Category:** flash\
**Created:** [March 10, 2006, 7:43pm UTC](https://forum.kirupa.com/t/multi-dimensional-arrays-and-attachmovie/181604 "2006-03-10T19:43:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![madmusings](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@madmusings](https://forum.kirupa.com/u/madmusings)\
**Post date:** [March 10, 2006, 7:43pm UTC](https://forum.kirupa.com/t/multi-dimensional-arrays-and-attachmovie/181604/1 "2006-03-10T19:43:30Z")

</div>

This is my first posting! I visit this site almost every other day and it has been a sort of online Gita for me. I am a designer and I find advanced actionscript really tugging at my brain cells. A little help in solving this would be nice:blush:.

memberInfo = [[“1”,“[http://www.madmusings.com](http://www.madmusings.com)”],[“2”],[“3”],[“4”],[“5”],[“6”],[“7”]];

xPos = 100;  
yPos = 100;

for (i = 0; i \< memberInfo.length; i++){  
attachMovie(“container”, “new”+i, i, {\_x: xPos, \_y: yPos});  
xPos += this[“new” + i].\_width + 5;  
this[“new” + i].name.text = memberInfo\*[0];  
this[“new” + i].link = memberInfo\*[1];  
}

As you can see I got it working this far. Now I want to have an inner loop so that only 5 buttons [“container”] come in the first line at yPos=100 and next five in the second line at yPos=150.

I know it is a simple fix. But I just can’t seem to get it.

Madmusings
