title: AS3 Loading external swf from AN externally loaded swf - Accessing Children?
body: <p>EDIT</p>
  
  <h2>UPDATE MARCH 12TH 2012: This is done using AIR FOR ANDROID USING CS5.5. I need access to the vars in the newly <strong>EXTERNALLY LOADED SWF</strong> files that are hosted on a web server and I need to have the APP on my phone access them. <strong>I am beginning to this is not possible.</strong></h2>
  
  <h2>------------------------------------------------------------------------------</h2>
  
  <p><em><strong>My Main Stage swf loads another one:</em></strong></p>
  
  <p><strong>SWF 1</strong></p>
  
  <pre><code>var TheContent:Loader = new Loader();
      TheContent.load(new URLRequest("http://MyWebsite.com/swf2.swf"));
  </code></pre>
  
  <p>/// In this <strong>SWF 1</strong> above <strong>I NEED TO KNOW WHAT CODE</strong> can see if other content is loaded and control it when loaded. But its tricky because <strong>I am loading external content from an externally loaded swf.</strong> </p>
  
  <p><em><strong>Here is the code in SWF 2</em></strong></p>
  
  <pre><code>var TheMenu:Loader = new Loader();
  TheMenu.load(new URLRequest("http://MyWebsite.com/MenuBar.png")); // you were missing a "
  </code></pre>
  
  <p>In the first <strong>SWF 1</strong> I want to know if the MenuBar.png has loaded and how to control it. So for example in <strong>SWF 1</strong> I might put code like this...</p>
  
  <pre><code>    if(TheContent.MenuBar) /// IS LOADED? THEN...
      {
          MenuBar.alpha = .3;
          MenuBar.x = 33;
          etc...
      }
  </code></pre>