mc.onEnterFrame = function(){ mc._x += (posXFinal-mc._x)*aceleracion; mc._y += (posYFinal-mc._y)*aceleracion; if (mc._x <= -100){ mc._x = -100; delete this.onEnterFrame; } }