title: Why isn't this garbage collected
body: <p>If I make a timer such as</p>
  
  <pre><code>var timer:Timer = new Timer(50, 0);
  timer.addEventListener(TimerEvent.TIMER, OnTimer);
  timer.start();
  </code></pre>
  
  <p>and then my function ends, you would think this timer has gone out of scope and nothing is holding on to a reference of it anymore. However this timer still works.</p>
  
  <p>So either I am getting lucky and the garbage collector hasn't run yet or something is holding on to a reference. If it is the latter then how will I know it is going to be garbage collected?</p>