# My Timer is Broke, please help :)

**URL:** https://forum.kirupa.com/t/my-timer-is-broke-please-help/241630
**Category:** flash
**Created:** [October 16, 2007, 12:26pm UTC](https://forum.kirupa.com/t/my-timer-is-broke-please-help/241630 "2007-10-16T12:26:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RichGags](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richgags/32/685_2.png) [@RichGags](https://forum.kirupa.com/u/RichGags)
#### Post date: [October 16, 2007, 12:26pm UTC](https://forum.kirupa.com/t/my-timer-is-broke-please-help/241630/1 "2007-10-16T12:26:05Z")

</div>

Can someone tell me why my pages fade in the first time through, but then doesnt wait when called again?

```auto
function fadePageIn () {
    
    var fadespeed = 5;
    
    function wait() {               
    
    _root.pages.onEnterFrame = function() {
            if (_root.pages._alpha<100) {
                _root.pages._alpha += fadespeed;
            } 
     }
     
    clearInterval(myTimer);  
    }
    
    myTimer = setInterval(wait, 2000);  
    
};

```

Thanks!  
Rich
