# How to remove an externally loaded swf?

**URL:** https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60474
**Category:** Uncategorized
**Created:** [August 10, 2004, 5:12am UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60474 "2004-08-10T05:12:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kirstenosborn](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kirstenosborn](https://forum.kirupa.com/u/kirstenosborn)
#### Post date: [August 10, 2004, 5:12am UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60474/1 "2004-08-10T05:12:26Z")

</div>

Hi out there. Im trying to unload an external swf, but it doesnt seem to be working the way im doing it. I tried to use unloadmovie, but it removed the whole movie. I used the file name and it still did not work.

**here is the code on the button:**

```
//loads client list
_root.contents.loadMovie("company/companyClientList.swf");

	
//closes other rollout (but not swf!)
_root.aboutNav_mc.people_mc.gotoAndStop(1);

```

}

**here is the previous button containing the two swf files I am trying to get rid of:**

on (press) {  
\_root.contents.loadMovie (“people/peopleJerry.swf”);  
\_root.text.loadMovie(“people/textJerry.swf”);

}

I can send the link to what is happening if that makes it clearer.  
thank you!!  
🐇

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 10, 2004, 6:06am UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60474/2 "2004-08-10T06:06:10Z")

</div>

Basically:

```auto
//to load
on (press) {
	_root.contents.loadMovie("yourswf.swf");
}
//to unload
on (press) {
	_root.contents.unloadMovie();
}

```

Hope this helps:)

scotty(-:
