title: Pass Parameters when loading external swf as2 when pressing corresponding button
body: <p>There is a code <a href="http://changesdone.com/index.php/posts/loading-an-external-swf-file-with-as2/" rel="nofollow">here in this tutorial to load external swf</a> with as2:
  The code is as follows:</p>
  
  <pre><code>var swfLoader:MovieClipLoader = new MovieClipLoader();
  var loadingListener:Object = new Object();
  
  swfLoader.addListener(loadingListener);
  
  loadingBtn_mc.onRelease = function()
  {
      swfLoader.loadClip("slides.swf",container_mc);
      this._visible = false;
  };
  
  loadingListener.onLoadStart = function(container:MovieClip):Void 
  {
      trace("The MovieClip " + container + " started loading");
      loadingProgress_mc._x = 126;
      loadingProgress_mc._y = 135;
  };
  
  loadingListener.onLoadProgress = function(container:MovieClip, bytLoaded:Number, bytTotal:Number):Void 
  {
      var percentageLoaded:Number = (bytLoaded / bytTotal) * 100;
  
      loadingProgress_mc.percentage_txt.text = String(Math.floor(percentageLoaded));
  
      trace("Loading progress = " + String(Math.floor(percentageLoaded)));
  };
  
  loadingListener.onLoadComplete = function(container:MovieClip):Void 
  {
      trace("The MovieClip " + container + " has completed loading");
      loadingProgress_mc._x = -200;
  };
  
  loadingListener.onLoadInit = function(container:MovieClip):Void 
  {
      trace("The MovieClip " + container + " has been initialized");
  };
  
  loadingListener.onLoadError = function(container:MovieClip, errorCode:String):Void 
  {
      trace("Error loading the file. Error code = " + errorCode);
  };
  </code></pre>
  
  <p>To unload swf (once loaded) I added:</p>
  
  <pre><code>    unloadingBtn_mc.onRelease = function()
  {
      swfLoader.unloadClip(container_mc);
      //this._visible = false;
  };
  </code></pre>
  
  <p>But How  how to pass a parameter to "slides.swf" in <code>swfLoader.loadClip("slides.swf",container_mc);</code> ?</p>
  
  <p><a href="http://changesdone.com/wp-content/zip/posts/2011/06/CD-loading-an-external-swf-file.zip" rel="nofollow">Here is the source file</a></p>