Idle loop

I’m creating a SWF for an installation that needs to loop, or reload once the trackpad/mouse/whatever is idle for a minute. I’ve been googling mad code, but can’t find anything that works for what I have.
The code is self-contained. It doesn’t load from anywhere else, there aren’t any classes, just code; I just need it to return to its initial state when it has been idle. Suggestions?