function easing(clip,final_x,final_y){ clip._x+=(final_x-clip._x)/2; clip._y+=(final_y-clip._y)/2; } cambios_btn.onRelease = function(){ easing(cuadro,300,0); }