# Resetting a loaded swf

**URL:** <https://forum.kirupa.com/t/resetting-a-loaded-swf/306561>\
**Category:** Uncategorized\
**Created:** [March 17, 2010, 3:38pm UTC](https://forum.kirupa.com/t/resetting-a-loaded-swf/306561 "2010-03-17T15:38:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edward\_338](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@edward\_338](https://forum.kirupa.com/u/edward_338)\
**Post date:** [March 17, 2010, 3:38pm UTC](https://forum.kirupa.com/t/resetting-a-loaded-swf/306561/1 "2010-03-17T15:38:18Z")

</div>

When I swap out SWFs using the same loader, the newly loaded SWF is either blank or seems to only play nested movieClips. I believe they were created in ActionScript2 and I don’t have the FLAs for them.

I’ve tried unload and removeChild on the loader, but still the newly loaded SWF doesn’t seem to initialize.

Any help is much appreciated. Thanks.

**Heres the AS3 code:**

var clipLoader:Loader = new Loader();  
var url:String = “ad1.swf”;  
var urlReq:URLRequest = new URLRequest(url);  
var url2:String = “ad2.swf”;  
var urlReq2:URLRequest = new URLRequest(url2);

clipLoader.load(urlReq);  
addChild(clipLoader);

box0.addEventListener(MouseEvent.CLICK, resetClip);

function resetClip(event:MouseEvent):void {  
clipLoader.load(urlReq2);  
}
