Menu

particle mask

2016. 5. 21. 23:44

안개핑 Flash study

 

 

 

 

      ----------------------------------------------------- --Layer1-- onClipEvent(enterFrame) { oldx=x; oldy=y; x=_x; y=_y; if (_x< -200 || _x> 200) { _x=oldx; xspeed=-xspeed; } if (_y< -22 || _y> 22) { _y=oldy; yspeed=-yspeed; } if (_xscale < 700) { scale=random(5)+5; _xscale+=scale; _yscale+=scale; _x+=xspeed+random(3); _y+=yspeed+random(3); } else { _root.gotoAndPlay('done'); } ------------------------------------------------------------------ --Layer2-- this.particle._visible=0; for(i=0;i<=100;i++) { duplicateMovieClip('particle','particle'+i,i) this['particle'+i].xspeed=random(10)-random(10); this['particle'+i].yspeed=random(10)-random(10); }

       

>

'Flash study' 카테고리의 다른 글

디지털 전광판  (0) 2016.05.22
파노라마  (0) 2016.05.21
폭포2  (0) 2016.05.21
mosaic_end  (0) 2016.05.21
탄력버튼  (0) 2016.05.21