# Resetting an interval with a frame change

**URL:** <https://forum.kirupa.com/t/resetting-an-interval-with-a-frame-change/221509>\
**Category:** flash\
**Created:** [April 4, 2007, 8:08pm UTC](https://forum.kirupa.com/t/resetting-an-interval-with-a-frame-change/221509 "2007-04-04T20:08:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miah8000](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@miah8000](https://forum.kirupa.com/u/miah8000)\
**Post date:** [April 4, 2007, 8:08pm UTC](https://forum.kirupa.com/t/resetting-an-interval-with-a-frame-change/221509/1 "2007-04-04T20:08:23Z")

</div>

Hi Everyone,  
I know this is probably a simple fix, but I am not able to find it.  
I have a map that allows people to click on buttons and see addresses for certain properties. I have the addresses in a movie clip that resets after 12 seconds to blank. The problem I have is that when someone clicks on a different property, once one has been chosen, it doesn’t reset the timer on the addresses so they can disappear quickly.

This is my code.

```auto

function wait() {  
   addresses_mc.gotoAndStop("home")
}
myTimer = setInterval(wait, 12000);

```

I want to make it so that when a different address is chosen, i.e. a different frame in address\_mc that the interval timer resets back to 12 seconds.

Any and all suggestions are welcome.

Thanks,  
Jeremiah
