# Unloading an external file

**URL:** <https://forum.kirupa.com/t/unloading-an-external-file/174237>\
**Category:** Uncategorized\
**Created:** [January 4, 2006, 1:36am UTC](https://forum.kirupa.com/t/unloading-an-external-file/174237 "2006-01-04T01:36:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![admsh](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@admsh](https://forum.kirupa.com/u/admsh)\
**Post date:** [January 4, 2006, 1:36am UTC](https://forum.kirupa.com/t/unloading-an-external-file/174237/1 "2006-01-04T01:36:28Z")

</div>

i’m stuck… :-/  
i’m using external SWFs that load into my “container” layer when a button is pressed. these external SWFs will have a “close” button in them, and i want them to “unload” when the button is pressed. this is the code i’m using to load the movie, which works fine:

\_root.container.loadMovie(\_root.currMovie+".swf")

but how does one go about “unloading” a movie? how can i change this line of code to achieve this?

🅱
