title: AS3 externally loaded swf to control stage and MovieClips and their children?
body: <p>I have 2 swf files. One is loaded and loading an externally loaded swf into it.</p>
  
  <p>Here is the code in the first loaded swf: <strong>#1</strong></p>
  
  <pre><code>var logo:Loader = new Loader();
  logo.load(new URLRequest("images/Logo.png"));
  logo.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadLogo);
  function LoadLogo(e:Event):void
  {
      addChild(logo);
  
  }
  
  /// The SWF I AM LOADING 
  
  var Beau:Loader = new Loader();
  Beau.load(new URLRequest("Beau.swf"));
  Beau.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadBeau);
  
  function LoadBeau(e:Event)
  {
      addChild(Beau);
  
  }
  </code></pre>
  
  <p>NOW HERE IS THE CODE FOR THE BEAU SWF LOADED: <strong>#2</strong></p>
  
  <pre><code>import flash.display.MovieClip;
  
  
  bird.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
  
  function fl_MouseClickHandler(event:MouseEvent):void
  {
     ////   I WANT TO BE ABLE TO ADD CODE TO CONTROL MOVIECLIPS 
     ////   AND CHILDREN form this externally loaded swf. How do
     ////   I do that? Below code does not work.
  
  var logo:MovieClip;
  var ControlLogo:MovieClip = MovieClip(logo.content);
      ControlLogo.alpha = .3;
  </code></pre>
  
  <h2>    }</h2>
  
  <hr>
  
  <p>EDIT</p>
  
  <p>ok your code and tutorials are great. I am having major SANDBOX issues now when I make the clip load from an external URL. I am also coding for an ANDROID using FLASH CS5.5. Its not allowing me to use Security.allowDomain("*"); </p>
  
  <p>BOTTOME LINE IS THE NEWLY LOADED SWF can not access the PARENT WITHOUT PERMISSION BUT I DON'T KNOW HOW TO GIVE IT PERMISSION.... using the AIR/ANDROID PLAYER.</p>