# Can i load an as2 swf then unload an as3 swf?

**URL:** <https://forum.kirupa.com/t/can-i-load-an-as2-swf-then-unload-an-as3-swf/324478>\
**Category:** Uncategorized\
**Created:** [August 23, 2011, 6:51am UTC](https://forum.kirupa.com/t/can-i-load-an-as2-swf-then-unload-an-as3-swf/324478 "2011-08-23T06:51:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sleepy20](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sleepy20](https://forum.kirupa.com/u/sleepy20)\
**Post date:** [August 23, 2011, 6:51am UTC](https://forum.kirupa.com/t/can-i-load-an-as2-swf-then-unload-an-as3-swf/324478/1 "2011-08-23T06:51:04Z")

</div>

hi!!

how can i unload an as3 swf then load an as2 swf in its place…  
it does loads but the as3 get stuck behind the as2 and some of the external file wont show up…  
here is my code in as3:

bck.addEventListener(MouseEvent.CLICK, bckclick);  
function bckclick(MouseEvent:Event):void {  
var loader:Loader = new Loader();  
//function loadswf(target:String){  
loader.load(new URLRequest(“as2.swf”));  
addChild(loader);}

how do i add an as3.unload to this?:hurt:

pls help…
