Hi,
this sure needs some kind of mouse watch script, but you can
use onMouseMove and just place the code on the first frame of the
main timeline, then it will affect the whole movie.
Then you'll need an interval the length of the timeout, that
calls the 'goto screensaver' action. On mouseMove, clear the
existing interval and start a new one. You could use the
(undocumented) setTimeout function for the interval (see the
comments
here).
So altogether it might be something like this:
--
var timeoutID:Number;
function timedOut () {
gotoAndPlay("welcome");
}
onMouseMove = function(){
clearTimeout(timeoutID);
timeoutID = setTimeout(timedOut, 300000); // 300000 ms = 5
min
}
--
That should be all. The code should be placed on the _root
timeline's first frame.
Maybe there's a better way to do this (the timeout is cleared
and re-created on every mouse move), but as the mouse move is the
event that shall stop the timeout, I don't see a better way here.
hth,
blemmo