캠핑과 개발

// 부드러운 움직임

MovieClip.prototype.smoothMove = function(speed, targetx, targety){

    this._x += speed*(targetx - this._x);

    this._y += speed*(targety - this._y);

};



_root.무비클립인스턴스.smoothMove(0.2, _xmouse, _ymouse);


[출처] http://blog.naver.com/sync6324/110033835026

'DEVELOPMENT > IOS' 카테고리의 다른 글

아이폰 OS 개발 자료 총정리  (0) 2012.05.17
iPhone용 Open Source 모음  (0) 2012.05.17