Unload container content

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

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 !

:slight_smile: PAUK

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?