I have an Array with image names in it. I want to loop through the array and create empty movie clips and load an image into it. I also want to do this in rows of 3. RIght now I am just having trouble getting the images to load. Any help would be appreciated. Thanks.
CODE:
function placeImages() {
trace("Place Images");
trace(currentArray);
startX = 110;
startY = 86;
xSpace = 63;
xSpace = 50;
row = 1;
switch (currentArray)
{
case "regArray2":
for (var x = 1; x < regArray2.length+1; x++) {
//trace("AddChild");
this.createEmptyMovieClip("picture"+x, 1000);
this["picture"+x]._x = 110;
this["picture"+x]._y = 86;
this["picture"+x]._xscale = 10;
this["picture"+x]._yscale = 10;
this["picture"+x].loadMovie(regArray2[x]);
}
break;
}
}