웹디자인 강의
Flash 물방울 무비 시리즈(1)
2003.10.09 22:35
::::복사용 액션::::
1프레임 액션
i=0;
count=15;
2 프레임 액션
i++;
var
scale=random(50)+100;
if (i < count) {
duplicateMovieClip("bubbles",
"bubbles"+i, i);
with(_root["bubbles"+i])
{
_x
= random(550)+20;
_y
= random(400)+10;
_xscale
= scale;
_yscale = scale;
}
_root["bubbles"+i].onEnterFrame
= function() {
this._x
+=5;
this._y
+= 5*Math.sin(15 * this._x);
if(this._x > 550) {
this._x
= random(400);
this.gotoAndPlay(1);
}
}
}
3 프레임
gotoAndPlay(2);
연필달린 기념으로 물방울 씨리즈를 연재 할까 합니다.