Timeout

I have an actionscript 2.0 movie, using multiple scenes and buttons.
It allows the user to click there way through the timeline, and across scenes.

I have a problem, If a user walks away from it - without completing it at exhibition, I would like it to timeout and reset to frame 1, scene 1.

I have the following code on a layer that stretchs the length of scene 1.
Taken from a flash help forum:

//see if there is inactivity (for 4 seconds)
var myInterval = setInterval(myFunction, 251000);
//there is no inactivity, the mouse is moving
this.onMouseMove = function() {
//clear the interval
clearInterval(myInterval);
//but set a new one
//if there is inactivity after all, for 4 seconds, do something, i.e., call the function
myInterval = setInterval(myFunction, 25
1000);
};

function myFunction()

{

clearInterval(myInterval);

gotoAndStop("Scene 1", 1);

}

My question is to I put that code on the start frame of every scene? (Which I havedone).
The time allocated for the timeout seems to get progressively faster after the initial timeout.
for example, I can click through indefinitely the first time, after it resets I can click through for 25 seconds, after this resets perhaps half, then half of that etc…

so,

What exactly does the clearinterval(myInterval), line do?
I have a feeling its try to reset the timer, and stop it from sending the playhead back to “Scene ,1, 1”

But it doesnt seem to be working.

Code works great for one cycle, But once its reset. The code with trigger itself every 25 seconds, even if i make a conscious effort to continuously move the mouse?

Does ‘MouseMove’, mean clicking, or just tracking?

Anyhelp would be much appreciated. (