03/09/09 17:00
>>369
単色であれば一応できなくもない。
createEmptyMovieClip("main", 0);
createEmptyMovieClip("blend", 1);
for (cnt = 0; cnt < 50; cnt++) {
main.createEmptyMovieClip("box" + cnt, cnt);
templ = Math.random() * 0xFFFFFF;
tempc = Math.random() * 0xFFFFFF;
tempx = Math.random() * 400;
tempy = Math.random() * 400;
with (main["box" + cnt]) {
lineStyle(3, templ, 100);
beginFill(tempc);
moveTo(tempx + 50, tempy + 50);
lineTo(tempx - 50, tempy + 50);
lineTo(tempx - 50, tempy - 50);
lineTo(tempx + 50, tempy - 50);
endFill();
}
blend.createEmptyMovieClip("box" + cnt, cnt);
with (blend["box" + cnt]) {
lineStyle(3, templ, 100);
beginFill(tempc);
moveTo(tempx + 50, tempy + 50);
lineTo(tempx - 50, tempy + 50);
lineTo(tempx - 50, tempy - 50);
lineTo(tempx + 50, tempy - 50);
endFill();
}
}