Note
Another way to remove external content is to use the command, unload(). The code, myLoader.unload() removes the SWF that is loaded into the Loader object, but the Loader object remains on the Stage.
myLoader.addEventListener(MouseEvent.CLICK, unloadcontent);function unloadcontent(myevent:MouseEvent):void { removeChild(myLoader);}