I’m a novice so I need a little help with a game I am working on.
I have an object that contains a timer. I do addEventListener on the timer and start the timer.
At some point the object is deleted but I find that the timer keeps firing (using trace statements).
What gives?
What I don’t get is, how come when I delete the only object that has a reference to that timer, the timer doesn’t go away along with the event? Or do I have to do a removeEventListener() on the timer before removing the object for it to go away?