import flash.events.Event;
var easing:Number=0.2;//比例系数
var targetX:Number=500;
var targetY:Number=0;
var dx:Number;
var dy:Number;
var vx:Number;
var vy:Number;
this.addEventListener(Event.ENTER_FRAME,moveing);
function moveing(e:Event):void{
vx=(targetX-ball.x)*easing;
vy=(targetY-ball.y)*easing;
ball.x+=vx;
ball.y+=vy;
}