# Movieclips

**URL:** <https://forum.kirupa.com/t/movieclips/147236>\
**Category:** Uncategorized\
**Created:** [May 8, 2005, 6:05pm UTC](https://forum.kirupa.com/t/movieclips/147236 "2005-05-08T18:05:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henxon](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Henxon](https://forum.kirupa.com/u/Henxon)\
**Post date:** [May 8, 2005, 6:05pm UTC](https://forum.kirupa.com/t/movieclips/147236/1 "2005-05-08T18:05:34Z")

</div>

Hello. I am trying to create several movieclips dynamicly, why wont my code work? I can only see the last mc that I create…

\*imgFolder \*is path to image folder and _imgArray_ is an array with all the images in that folder…

```auto

//load all images
for(imgIndex;size>imgIndex;imgIndex++){
	loadThumb();
}

//load thumbnail------------------------------------
function loadThumb(){
	// make a movieclip for each of the jpeg's
	createEmptyMovieClip("thumb"+imgIndex,1);
	// load in the jpeg
	loadMovie(imgFolder+imgArray[imgIndex],"thumb"+imgIndex);
	//placement
	setProperty("thumb"+imgIndex,_x,imgIndex*42);
	setProperty("thumb"+imgIndex,_y,0);
}

```
