Dynamic image gallery

hello folks!

i need to create a dynamic image gallery. the files are defined in an array like imgs = [‘img1.jpg’,‘img2.jpg’]; then i loop through the array. the images should be arranged horizontally…

how i do this?

thanks for any answer!

 this.imgs = ['test.jpg','bla.jpg'];
 var x = 0;
 var y = 0;
 var i;
 for (i in imgs) {
 	var t = this.createEmptyMovieClip ("thumbnail" + i, i);
 	var c = t.createEmptyMovieClip ("picHolder", 0);
 	var thumb = imgs*;
 	c.loadMovie (thumb);
 	c._x = x + i * c._width;
 	c._y = y;