title: Loading another swf file using AS3
body: <p>I'm trying to load in another swf on a button click using Aaction Script 3. </p>
  
  <p>The problem I'm having is that it just seems to load and mix the movies together. Is is possible to load and replace on stage the newly loaded swf similar to how you could do this in AS2 using loadMovieNum()</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>//Add event listener for button click
  backButton.addEventListener(MouseEvent.CLICK, backButtonClick);
  
  //Create a function for the button click
  function backButtonClick(ev:MouseEvent):void
  {
  var request:URLRequest = new URLRequest("2.swf");
  var loader:Loader = new Loader()
  loader.load(request);
  addChild(loader);
  }
  </code></pre>
  
  <p>Many thanks </p>