Making something follow your cursor?

Hi there,

I am making a flash menu for one of my sites and i have all my buttons and menu layed out in flash. But what i basically want is like a line underneath the menu with a little rectangle on that line, and when your mouse goes over a button on the far right of the menu, the rectangle will speed along the line until it is below that button that your mouse went over.

Then, when you take your mouse off the button it stayed in the same place, but then when your mouse goes over another button the rectangle will move along the line to below that button that your mouse went over.

How do i do this? Please help.

:ne: :ne: