Snap to X,Y

Hey -
i know its easy and that its out there - just can’t seem to find it.
i need my movie clip to snap to the xy coordinates to keep the text sharp.
applied to this code:

onClipEvent (load) {
	_x = 1280;
	_y = 0;
	speed = 5;
}
onClipEvent (mouseMove) {
	endX = _root._xmouse;
	endY = _root._ymouse;
}
onClipEvent (enterFrame) {
	_x += (endX-_x)/speed;
	_y += (endY-_y)/speed;
}

thanks! :love: