Menu

masking

2016. 5. 28. 03:52

안개핑 Swish study

 

 

 

------------------------------------------------------------------------------------------------------------------------------------------

mask
--------------------------------------------------
onLoad () {
this._x = 0;
this._y = 0;
this.speed = 7;
}
onEnterFrame(includingFirstFrame) {
this.endX = _root._xmouse;
this.endY = _root._ymouse;
this._x += (this.endX-this._x)/this.speed;
this._y += (this.endY-this._y)/this.speed;
}
onFrame (21) {
gotoAndPlay(1);
}
-------------------------------------------
ring
-------------------------------------------
onLoad () {
this._x = 0;
this._y = 0;
this.speed = 7;
}
onEnterFrame(includingFirstFrame) {
this.endX = _root._xmouse;
this.endY = _root._ymouse;
this._x += (this.endX-this._x)/this.speed;
this._y += (this.endY-this._y)/this.speed;
}
onFrame (39) {
gotoAndPlay(1);
}

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

폭죽 만들기.  (0) 2016.05.27
마우스 따라다니는 새  (0) 2016.05.27
선명한 텍스트에 효과주기  (0) 2016.05.27
비내리는 효과 만들기  (0) 2016.05.27
스위시맥스에서 Preloader 만들기  (0) 2016.05.27