# Unload movie script

**URL:** <https://forum.kirupa.com/t/unload-movie-script/37674>\
**Category:** flash\
**Created:** [December 12, 2003, 8:54pm UTC](https://forum.kirupa.com/t/unload-movie-script/37674 "2003-12-12T20:54:25Z")\
**Posts on this page:** 1\
**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/37674/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
