Start Over after idle

Hey,

I have looked all over, but I cannot find an example of this. I have a kiosk movie, and I want it to return to Frame 1 if no one uses it for a couple minutes. Does anyone have any idea how to do this? Your help would be appreciated.

Thanks.

Edit: AS MX

just have sumthing like

 
timer = 0;
function timing() {
 timer++;
 if (timer == 1800) {
  timer = 0;
  gotoAndPlay(1);
 }
}
if (timer=0) {
 timing();
}
 

off the top of my head, sorri i cant check it. im not at my house atm.

I`m not sure what a kiosk movie is, but something like this might work

function init() {
oldX = this._xmouse;
oldY = this._ymouse;
}
init();
function checkMousemove() {
if (this._xmouse == oldX && this._ymouse == oldY) {
clearInterval(myInterval);
gotoAndStop(1);
} else {
oldX = this._xmouse;
oldY = this._ymouse;
//you might want to clearInterval here and put the setInterval in a startbutton press or something.
}
}

myinterval = setInterval(checkMousemove, 120000);