커뮤니티로 돌아가기

대화

씨남。님의 글에서 이어진 답글 0개

씨
씨남。@rlawldnr123

마우스 따라다니는거(글강좌) 일단플래시8이나mx2004를키세요. 그다음마우스를그리고f8을누르시고버튼으로지정하세요. 그다음f9를누르시고이액션을넣어주세요 onClipEvent (enterFrame) { Mouse.hide(); } onClipEvent (mouseMove) { this._x=_root._xmouse; this._y=_root._ymouse;this.coord="X: " + Math.round(this._x) + " Y:" +Math.round(this._y);updateAfterEvent();} 그다음 마우스따라다닐꺼를그리시고f8을눌러버튼지정,f9를눌러서이액션넣으세요 onClipEvent (enterFrame) { ratio = 1*0.25; vx = (_root._xmouse-this._x)*ratio; vy = (_root._ymouse-this._y)*ratio; this._x = this._x+vx; this._y = this._y+vy; } 끝!!