star에 들어가는 액션
onLoad () {
scale=random(80)+10;
_xscale=_yscale=scale;
_alpha=scale+30;
_rotaation=random(360);
r=scale/5;
xspeed=scale/20;
_y=random(300);
_x=random(500);
}
onEnterFrame(includingFirstFrame) {
_x-=xspeed;
if (_x<0) {
_x=500;
_root.flower.gotoAndPlay(1);
}
}
-------------------------------------------
Scene-1 에 들어가는 액션
onFrame (1,afterPlacedObjectEvents) {
for (i=0; i<80; i++) {
duplicateSprite(_root.star, "star"+i, i);
}
}
'Swish study' 카테고리의 다른 글
꽃바람 (0) | 2016.05.26 |
---|---|
slidemenu (0) | 2016.05.26 |
화면전환-5 (0) | 2016.05.26 |
blind (0) | 2016.05.26 |
controlers (0) | 2016.05.26 |