Flash&Action

메쏘드 모음

디자인인스 2010. 10. 20. 10:12
//탄력적인 움직임
MovieClip.prototype.moveElastic = function (target, a, b) {
this.tempx = this._x;
this._x = a*(this._x - target)+b*(this.prev_x - target)+ target;
this.prev_x = this.tempx;
};