function moveClip (theClip, xDist, yDist) { theClip._x += xDist; theClip._y += yDist; } this.onEnterFrame = function(){ moveClip (ball, 5, -15); }