title: setTimeout, clearTimeout in closure
body: <pre><code>var clearId:int = setTimeout(function():void{
              //some code here
              clearTimeout(clearId);
          },2000);
  </code></pre>
  
  <p>Is this valid AS3? Anyone see problems with it?</p>