Action Script 3 time

I want to record the time the mouse is over a button for time under 1.5 s and i want to use this number to be how much a movie clip is moved over.
how do i do this!!!