# Remove SWF -- kind of urgent!

**URL:** https://forum.kirupa.com/t/remove-swf-kind-of-urgent/309167
**Category:** flash
**Created:** [May 8, 2010, 3:15pm UTC](https://forum.kirupa.com/t/remove-swf-kind-of-urgent/309167 "2010-05-08T15:15:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cm2010](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@cm2010](https://forum.kirupa.com/u/cm2010)
#### Post date: [May 8, 2010, 3:15pm UTC](https://forum.kirupa.com/t/remove-swf-kind-of-urgent/309167/1 "2010-05-08T15:15:35Z")

</div>

Hello,

I’m loading external SWFs into a larger SWF/projector, and I need to load the next and remove the previous one.  
Because of some unforseen technical requirements, I need to do this in AS3, unfortunately, I’m only used to AS2.  
I need the simplest possible way. Here’s the code I’m using:

On the main movie:

```auto

// LOAD FIRST CLIP
var loadit = new Loader();
loadit.load(new URLRequest("assets/01.swf"));
this.container.addChild(loadit);

```

Then on 01.swf:

```auto

stop();
// LOAD NEXT
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("02.swf"));

```

And then load 03.swf, 04.swf and so on.  
**When loading 02.swf, 01.swf needs to be unloaded.**  
How can I do this?

I have an impossible deadline to complete this, thus no time to research this properly (I have looked around and fiddled with the code but to no avail). :ponder:

Thanks for any help!
