# Enter\_Frame and Timer

**URL:** <https://forum.kirupa.com/t/enter-frame-and-timer/306007>\
**Category:** flash\
**Created:** [March 8, 2010, 2:01am UTC](https://forum.kirupa.com/t/enter-frame-and-timer/306007 "2010-03-08T02:01:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunoja](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@brunoja](https://forum.kirupa.com/u/brunoja)\
**Post date:** [March 8, 2010, 2:01am UTC](https://forum.kirupa.com/t/enter-frame-and-timer/306007/1 "2010-03-08T02:01:03Z")

</div>

Hello!

I was wondering, why does weak references does not work fro Enter\_Frame and Timer? I mean, when I add any event listener on an object for those events I must remove them later, that is annoying! I use this:

timer.addEventListener(TimerEvent.TIMER, myevent, false, 0, true);  
or  
sprite.addEventListener(Event.ENTER\_FRAME, myevent, false, 0, true);

When I lose reference to objects with these events (removeChild or null it) the event continues to happen and the ‘myevent’ func continues to be called 😕

Am I doing something wrong? What would be a good solution for this?

Thank you!
