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…
//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);
}