ฟอนต์ฟอรั่ม

F0NT Community (เก่า) => ห้องคอม => ห้องแฟลช => โพสต์ถูกเริ่มโดย: heart เมื่อ 11 ม.ค. 2007, 18:19 น.

ชื่อเรื่อง: แจกโค้ดแฟลชอีกสักครั้ง
โพสต์โดย: heart เมื่อ 11 ม.ค. 2007, 18:19 น.
สร้างงานใหม่ขนาด 600*600
ก็อปปี้โค้ดชุดนี้ไปวาง

step = 5;
all = 300;
color = "0xFFCC99";
function insertZerro(what) {
return (what.length == 2) ? what : "0"+what;
}
function randomColor() {
return "0x"+insertZerro(random(256).toString(16))+insertZerro(random(256).toString(16))+insertZerro(random(256).toString(16));
}
function d() {
for (i=0; i<=all; i += step) {
lineStyle(1, randomColor(), 100);
moveTo(0, (Stage.height/2)-i);
lineTo(i, 0);
}
for (i=0; i<=all; i += step) {
lineStyle(1, randomColor(), 100);
moveTo(((Stage.width/2)-i)+300, Stage.height);
lineTo(Stage.width, i+(Stage.height/2));
}
for (i=0; i<=all; i += step) {
lineStyle(1, randomColor(), 100);
moveTo((Stage.width/2)+i, 0);
lineTo(Stage.width, i);
}
for (i=0; i<=all; i += step) {
lineStyle(1, randomColor(), 100);
moveTo(300-i, Stage.height);
lineTo(0, Stage.height-i);
}
}
d();


แล้วรันดูผล
http://img2.f0nt.com/flash/6b89e4191d29561ef314196b3b3656a1.swf


ชื่อเรื่อง: Re: แจกโค้ดแฟลชอีกสักครั้ง
โพสต์โดย: ART_ เมื่อ 14 ม.ค. 2007, 15:23 น.
+2   กับความพยายามสร้างสรรค์ผลงานครับ

:33:
ชื่อเรื่อง: Re: แจกโค้ดแฟลชอีกสักครั้ง
โพสต์โดย: คนตาบอดข้างเดียว เมื่อ 25 ม.ค. 2007, 13:17 น.
แปลให้ฟังด้วยสิครับ :05: