# Removing movieclip/jumping flash site

**URL:** <https://forum.kirupa.com/t/removing-movieclip-jumping-flash-site/244872>\
**Category:** Uncategorized\
**Created:** [November 22, 2007, 10:54pm UTC](https://forum.kirupa.com/t/removing-movieclip-jumping-flash-site/244872 "2007-11-22T22:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylberg](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylberg](https://forum.kirupa.com/u/kylberg)\
**Post date:** [November 22, 2007, 10:54pm UTC](https://forum.kirupa.com/t/removing-movieclip-jumping-flash-site/244872/1 "2007-11-22T22:54:37Z")

</div>

i have a game with a timer that goes from 30 to 0, if u finish the game before 0, u win and get to the “you won” frame, and from there I want to go to the menu. but let’s say it’s 10 seconds left on the clock when u finish, then if i press the “back” button, it just quickly goeas back to the menu, before it jumps to the “you won” frame again. and I noticed it’s doing that every second, and when the timer should be at 0 it works again, i get to the menu.  
so basically i have to deactivate the timer when i get to the “you won” frame. how do i do that with this?

```php
function countDown(){
    _root.timeLeft.text = --countTotal;
    if(countTotal <= 0){
        clearInterval(id);
        gotoAndStop("lose");
    }
    if(score == 50){
        gotoAndStop("win")      
    }
}

```
