# Load/unload SWF

**URL:** https://forum.kirupa.com/t/load-unload-swf/307400
**Category:** flash
**Created:** [April 2, 2010, 5:15pm UTC](https://forum.kirupa.com/t/load-unload-swf/307400 "2010-04-02T17:15:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sweety867](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sweety867](https://forum.kirupa.com/u/sweety867)
#### Post date: [April 2, 2010, 5:15pm UTC](https://forum.kirupa.com/t/load-unload-swf/307400/1 "2010-04-02T17:15:23Z")

</div>

hi i have one question

I have put this in my first frame:var imageReq:URLRequest = new URLRequest(“portfolioo.swf”);  
var imageLoader:Loader = new Loader();  
imageLoader.contentLoaderInfo.addEventListener(Eve nt.COMPLETE, loadHandler);  
imageLoader.load(imageReq);

function loadHandler (event:Event){  
var myClip:MovieClip = event.target.content  
addChild(myClip);  
trace(myClip);  
//any movie clip playback command will now work  
myClip.gotoAndPlay(1);  
}

And i want put in second frame removeChild myClip.gotoAndPlay("\_out")  
But i don’t know how i must write this. Pleas help me!!!
