views:

3

answers:

0
var arr:Array = ["m1.jpg","m2.jpg","m3.jpg","m4.jpg","m5.jpg"];

for(var i=0; i<20; i++){ duplicateMovieClip(ho, "newImg_mc"+i , this.getNextHighestDepth()); if(i < 5){ this["newImg_mc"+i]._x = 0; this["newImg_mc"+i]._y = 110*i; this["newImg_mc"+i].loadMovie(arr[i]); }

if(i >= 5 and i < 10){
this["newImg_mc"+i]._x = 110;
this["newImg_mc"+i]._y = 110*(i-5);
this["newImg_mc"+i].loadMovie(arr[i-5]);
    }

if(i >= 10 and i < 15){
this["newImg_mc"+i]._x = 220;
this["newImg_mc"+i]._y = 110*(i-10);
this["newImg_mc"+i].loadMovie(arr[i-10]);
    }
if(i >= 15 and i < 20){
this["newImg_mc"+i]._x = 330;
this["newImg_mc"+i]._y = 110*(i-15);
this["newImg_mc"+i].loadMovie(arr[i-15]);
    }

}

related questions