Idle btn?

i want to creat a script that if my movie clip is idle for 5 seconds (or some period of time) with out someone moving there mouse over it, that it returns back to the original state. does anyone have a idea of what that would look like as far as scripting.