title: addEventListener and the scope of this
body: <p>I have a third party flash object which i can manipulate through a javascript API they provided.  I am tryind to listen to an event on this object and then fire event inside my object to further bubble up the event.  I happen to being using EXT Js but i dont think its important here.</p>
  
  <p>Sample code</p>
  
  <pre><code>this.chart.addEventListener('create', function() {
      this.fireEvent('created');
  }, false)
  </code></pre>
  
  <p>My problem is that 'this' inside the anonymous function refers to the object that fired the event rather than my object that I want to fire an event on.</p>
  
  <p>Its yet another scope issue.  Thanks in advance for any help.</p>