if (myobj._x>480) { myobj.removeMovieClip(); myarray.splice(i,1); i--; countlost++; trace(countlost); }