title: How to get all definitions in an ApplicationDomain of a loaded SWF?
body: <p>When you load a SWF into another, the loader SWF can get specific definitions from the loaded SWF using <code>ApplicationDomain.getDefinition(name:String)</code>. For example:</p>
  
  <pre class="lang-js prettyprint-override"><code>package 
  {
      // ... imports
  
      public class SWFLoader extends Sprite
      {
          private var loadedAppDomain:ApplicationDomain;
  
          public function SWFLoader()
          {
              var request:URLRequest = new URLRequest("test.swf");
              var loader:Loader = new Loader();
              loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onTestLoadComplete);
              loader.load(request);
          }
  
          private function onTestLoadComplete(event:Event):void
          {
              var loaderInfo:LoaderInfo = LoaderInfo(event.target);
              loadedAppDomain = loaderInfo.applicationDomain;
  
              // Here we can get ANY defined symbol (class, namespace or function according to Adobe Flash help)
              var someSymbolClass:Class = Class(loadedAppDomain.getDefinition("SomeSymbol"));
              var someSymbolSprite:Sprite = Sprite(new someSymbolClass());
  
              addChild(sprite);
          }
      }
  }
  </code></pre>
  
  <p>How can I get all of the definitions in a SWF, without specifying each explicitly?</p>