Mouse trail on Button OVER

FLASH MX:
I have been trying to design a button interface where if the mouse goes over the button, the object follows the mouse and comes over the button also. Then if the mouse moves over another button the object slides over to the other button and so on…
Here is the code for the object to follow the mouse:

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

Does anyone know how to make it so the object comes to the button when the mouse goes over it? Thanks in advance.