# Unload container content

**URL:** <https://forum.kirupa.com/t/unload-container-content/5683>\
**Category:** Uncategorized\
**Created:** [September 19, 2002, 12:04pm UTC](https://forum.kirupa.com/t/unload-container-content/5683 "2002-09-19T12:04:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PAUK](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@PAUK](https://forum.kirupa.com/u/PAUK)\
**Post date:** [September 19, 2002, 12:04pm UTC](https://forum.kirupa.com/t/unload-container-content/5683/1 "2002-09-19T12:04:56Z")

</div>

Hi I use this to load movies into a container with X,Y at the master movie.

* * *

## \_root.createEmptyMovieClip(“container”, 10); loadMovie(“pan\_svaneke1.swf”, “container”); container.\_x = 30 ; container.\_y = 40 ;

the movie pan\_svaneke1.swf has this on an unvisble botton

on(release){  
this.createEmptyMovieClip(“container”, 10);  
loadMovie(“pan\_svaneke2.swf”, “container”);  
container.\_x = 225 ;  
container.\_y = 120 ;  
}

BUT I now want to unload the container with the previous movie  
before creating a new one

As it is now it all messes up…as you can see here

[http://www.pauk.dk/pano/pan\_svaneke\_start.html](http://www.pauk.dk/pano/pan_svaneke_start.html)

And maybe it would be better only having 1 container an then loading and unloading the movies, because there may 10-15 panoramas — and its more easy to control a global X,Y pos.

Hope anyone got the time and some ideas !

🙂 PAUK

---

<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:** [September 19, 2002, 12:13pm UTC](https://forum.kirupa.com/t/unload-container-content/5683/2 "2002-09-19T12:13:41Z")

</div>

You can use unloadMovie(“movieclip”) to get rid of the movie from the clip it’s loaded in, but wouldn’t it be easier to load into one container, rather than nesting containers? You could do if you want, but why the hassle?
