# Help with how to link a lack of MouseEvents to Timer resent

**URL:** <https://forum.kirupa.com/t/help-with-how-to-link-a-lack-of-mouseevents-to-timer-resent/267150>\
**Category:** flash\
**Created:** [July 29, 2008, 4:39am UTC](https://forum.kirupa.com/t/help-with-how-to-link-a-lack-of-mouseevents-to-timer-resent/267150 "2008-07-29T04:39:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gl0tch](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gl0tch](https://forum.kirupa.com/u/gl0tch)\
**Post date:** [July 29, 2008, 4:39am UTC](https://forum.kirupa.com/t/help-with-how-to-link-a-lack-of-mouseevents-to-timer-resent/267150/1 "2008-07-29T04:39:32Z")

</div>

Hi-

Can someone help me?

Somehow I need Flash to detect if/when the mouse does NOT move over a course of time, so that it can begin a countdown to replay an intro movieclip I need to play before a graphical menu loads.

That is to say, if no one moves the mouse in order to access any of the menu items (say within a minute of the menu\_mc loading), the script runs and the intro\_mc plays over again. Every time the mouse moves, the script should reset (so that it doesnt go back and replay while the viewer is moving the mouse).

In the attached example, I’ve labeled the parts, where the light green ball represents the intro and the static dark green ball represents the menu. It stays on the menu page with the following script (which I am obviously unaware of how to modify to meet the above criteria).

```auto
stop();

function startOver() {
    clearInterval(id);
    gotoAndPlay("start");
}
var id = setInterval(startOver, 10000);

```

Thanks so much, I am totally lost
