title: Extjs 4 handling external events
body: <p>I have an Extjs 4 app that is running as an iframe in another web app (written in Javascript). I would like to somehow fire an event <strong>externally</strong> and catch it in the framework.
  That is, I would like to emulate</p>
  
  <pre><code> this.application.fireEvent('myevent', myparams);
  </code></pre>
  
  <p>I currently have a workaround. In my external app, I can do things like... </p>
  
  <pre><code>var w = document.getElementById('myIFRAME').contentWindow;
  if (w) {
      w._myFunctionInExtjs(myParam);
  }
  </code></pre>
  
  <p>...which calls a global function declared in my Ext code. It would be a lot cleaner if it's done through the Ext events though, so any help is appreciated.</p>