CHÀO MỪNG MỌI
NGƯỜI ĐẾN VỚI WEBSITE
Gốc > Học Adobe Macromedia Flash >
Võ Văn Bổ @ 15:05 29/06/2014
Số lượt xem: 398
Làm quạt quay bằng Flash
|
||||
|
CODE amount=20 for (i=0;i<amount;i++){ f=attachMovie("fan","fan"+i,100-i); f._x=Stage.width/2; f._y=Stage.height/2; f._alpha=10; f.speed=.5; f.quay=true; f.quaycham=false; f.onEnterFrame=function(){ this._rotation+=this.speed; if (this.quay){ this.speed*=1.01; if (this.speed>20){ this.quay=false; this.quaycham=true; } } if (this.quaycham){ this.speed*=.993; if (this.speed<5) { this.speed=5; this.quaycham=false; } } } } run=true; onEnterFrame=function(){ if (fan0.speed>5 and run){ for (i=0;i<amount;i++){ _root["fan"+i]._rotation+=i*fan0.speed/80; } if (fan0.speed>19) run=false; } }
Download index01.zip |
Võ Văn Bổ @ 15:05 29/06/2014
Số lượt xem: 398
Số lượt thích:
0 người
 
- Tạo hoạt cảnh “ong hút mật” bằng Flash (29/06/14)
- Hiệu ứng thay đổi vị trí chữ (29/06/14)
- Làm chữ chạy (29/06/14)
- Hiệu ứng ảnh động và xoay tròn (29/06/14)
- Tạo menu flash kèm âm thanh (29/06/14)

Các ý kiến mới nhất