velocity
private function trackVelocity(event:
Event
):void { vx = ball.x - oldX; vy = ball.y - oldY; oldX = ball.x; oldY = ball.y; } } }