Use ActionScript to do tweening motion
which is easy to control MC speed!! Fun
FREE Download codes(免費下載源碼)
http://annwongfresh.blogspot.com/
enter_btn.onRelease = function(){ easex(ball_mc, 400, 90); };
function easex(mc, targetX, targetY){ mc.onEnterFrame = function(){ var distanceX:Number = targetX - this._x; var distanceY:Number = targetY - this._y; this._x = this._x + distanceX / 5; this._y = this._y + distanceY / 5; };
another way to do Flash motion tweening
swfsolution 4 years ago