# Unload movie script

**URL:** <https://forum.kirupa.com/t/unload-movie-script/96731>\
**Category:** Uncategorized\
**Created:** [December 12, 2003, 8:54pm UTC](https://forum.kirupa.com/t/unload-movie-script/96731 "2003-12-12T20:54:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foolio](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@Foolio](https://forum.kirupa.com/u/Foolio)\
**Post date:** [December 12, 2003, 8:54pm UTC](https://forum.kirupa.com/t/unload-movie-script/96731/1 "2003-12-12T20:54:25Z")

</div>

I am having trouble with a movie clip that once it loads the external swf, the swf appears on every scene in my movie.

here is the script i used to create the empty movie clip:

but.onPress = function() {  
\_root.createEmptyMovieClip(“container”, 1);  
loadMovie(“Untitled-3.swf”, “container”);  
container.\_x = 400;  
container.\_y = 300;

if anyone can help me to have it unload when i try to go to another scene or “page” on my site.

Thx,

foolio

---

<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:** [December 12, 2003, 9:41pm UTC](https://forum.kirupa.com/t/unload-movie-script/96731/2 "2003-12-12T21:41:34Z")

</div>

```auto

unloadMovie(1);

```
