# How to remove an externally loaded swf?

**URL:** <https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/118911>\
**Category:** Uncategorized\
**Created:** [August 10, 2004, 5:12am UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/118911 "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/118911/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:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [August 10, 2004, 6:06am UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/118911/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(-:
