title: how to access class from embedded swf
body: <p>I am trying to get an instance of a specific class from an embedded swf, it so happens the class I need is also the Default Application extending Sprite for the swf.  I am able to do this successfully if I load the swf however I want to embed it instead.</p>
  
  <p>The class I want to load is also extending a custom interface.  Here is what I have tried but is not working:</p>
  
  <pre><code>[Embed(source="resources/MySwf.swf")]
  private var MySwf:Class;
  
  private function someFunction() : void
  {
      var inst:ISomeInterface = new MySwf() as ISomeInterface;
  }
  </code></pre>
  
  <p>I appreciate any pointers.</p>
  
  <p>Thanks.</p>