# Thumbs in rows defined by array

**URL:** https://forum.kirupa.com/t/thumbs-in-rows-defined-by-array/193254
**Category:** flash
**Created:** [July 10, 2006, 4:18am UTC](https://forum.kirupa.com/t/thumbs-in-rows-defined-by-array/193254 "2006-07-10T04:18:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tempest811](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@Tempest811](https://forum.kirupa.com/u/Tempest811)
#### Post date: [July 10, 2006, 4:18am UTC](https://forum.kirupa.com/t/thumbs-in-rows-defined-by-array/193254/1 "2006-07-10T04:18:51Z")

</div>

Hey I am quite new to the more advanced coding so here’s an easy one for you:

I have three images (thumb1, thumb2, thumb3) that I want to load onto the first row…  
then I want the second row to contain bar1 and bar2…

Obviously this code doesn’t work…but I was able to get it to do just the first row (the easy part). How do i get the second set to load in below them? I just left the code off where I left off in my head.  
I would love it if you could just comment or complete my code rather than pointing me to a tutorial. thanks!

```auto
images = [["thumb1.jpg" , "thumb2.jpg" , "thumb3.jpg"],["bar1.jpg" , "bar2.jpg"]];
for(j=0; j<images.length; j++){
	for(i=0; i<images[0].length; i++){
		var loader = new MovieClipLoader();
		image = this.createEmptyMovieClip("thumb" + i, i);
		loader.loadClip("pics/" + images[0]*, image);
		image._x = 230*i + 10;
		image._y = 10;
	}
}

```
