//actionscript grid positioning
ordo = 6;
totalMC = ordo*ordo;
for (i=0; i<totalMC; i++) {
far = new Array(50, 100, 150, 200, 250, 300);
n = i%ordo;
mc.duplicateMovieClip("mc"+i, i);
pos = eval("mc"+i);
pos._x = far[n];
pos._y = 50*((i-n)/ordo);
trace(n);
}
mc._visible=false;
ordo = 6 is the total of movie clip in horizontal position. TotalMC will make the formation in square. You can costumized the formation with change the value of ordo and Array.
Tidak ada komentar:
Posting Komentar