# Error 1046:Timer event type not found

**URL:** <https://forum.kirupa.com/t/error-1046-timer-event-type-not-found/330509>\
**Category:** Uncategorized\
**Created:** [January 31, 2013, 9:52am UTC](https://forum.kirupa.com/t/error-1046-timer-event-type-not-found/330509 "2013-01-31T09:52:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincentas](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Post date:** [January 31, 2013, 9:52am UTC](https://forum.kirupa.com/t/error-1046-timer-event-type-not-found/330509/1 "2013-01-31T09:52:09Z")

</div>

Hello,

I keep getting the error “Type was not found or was not a compile-time constant TimerEvent.”  
I imported flash.utils.Timer and flash.utilsTimerEvent, yet I’m still getting the error. Here are the important parts of my code:

package{  
//Not sure if both are necessary, but I tried individually with each  
import flash.utils.Timer;  
import flash.utils.TimerEvent;

```
public dynamic class Main extends MovieClip {
              var shotTimer:Timer = new Timer(1000, 0);
              shotTimer.addEventListener(TimerEvent.TIMER, shootTheBullet);

```

function shootTheBullet(event:TimerEvent) {  
// code  
}  
}  
}
