Hi there,
I am currently trying to create a kind of ‘screensaver’ effect in one of my Flash movies, and I have the following code which counts down from ten to zero:
displayTime = 10;
countDown = function () {
displayTime--;
if (displayTime == 0) {
trace("Time Out")
clearInterval(timer);
}
};
timer = setInterval(countDown, 1000);
The problem I am having is finding the right code to use to RESET this countdown back to ten if the user moves the mouse, clicks a button, presses a keyboard button, etc.
Does anyone have any idea about the code I should use for this?