# Unload content

**URL:** <https://forum.kirupa.com/t/unload-content/296708>\
**Category:** flash\
**Created:** [September 18, 2009, 4:57pm UTC](https://forum.kirupa.com/t/unload-content/296708 "2009-09-18T16:57:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raccoon](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Raccoon](https://forum.kirupa.com/u/Raccoon)\
**Post date:** [September 18, 2009, 4:57pm UTC](https://forum.kirupa.com/t/unload-content/296708/1 "2009-09-18T16:57:00Z")

</div>

Hello I’m newbie with as 3.0 i made some test to create a simple navigation between A and B swf files; when the B file load the A file remains, How can i remove or unload the A file?

this is the script:

stop();

Square.addEventListener(MouseEvent.CLICK, clickB);

function clickB(event:MouseEvent) {  
var myLoader:Loader = new Loader();  
addChild(myLoader);  
var url:URLRequest = new URLRequest(“B.swf”);  
myLoader.load(url);  
}

Sample in the file

Thanks for the help…
