3 Replies Latest reply on Jul 24, 2007 7:03 AM by kglad

    addChild and removeChild (AS 3)


      If I load an external swf (located in the same dir as the one loading it) with addChild. It looks something like this

      var url:String = "patfinder_extra1.swf";
      var urlReq:URLRequest = new URLRequest(url);

      Now, I want to be able to close/remove this new child within itself, image a little close button with the label "I'm a child and will close my self if i click here!".
      Now, this removeChild is a mystery and the new restrictions in paths in AS 3 really makes it hard. To simply use this.removeChild() returns errors.

      Any tips of how to close this thingy?