1/23/2011

偉大的等加速度公式在onEnterFrame

//100=D,D=物件移動之終點
mc.onEnterFrame = function(){
this._x += (100- this._x)/ 8;//等加速率
if(this._x > 99){
delete this.onEnterFrame;
}

No comments:

Post a Comment