Swf won't unload from memory


I’m hoping someone can help me with a little problem.

I’ve created and empty movie clip named “movieHolder” as a container to load in external swf files.

the intent is to load and unload different swf files into the “movieHolder” container with the following button code.


this.createEmptyMovieClip(“movieHolder”, this.getNextHighestDepth());

buttonOne_btn.onRelease = function():Void {
loadMovie(“galleryOne.swf”, movieHolder);

buttonTwo_btn.onRelease = function():Void {
loadMovie(“galleryTwo.swf”, movieHolder);


This code does work, however there is a glitch that has me stumped…

Selecting - buttonOne- loads the external “galleryOne.swf” file as expected, but when buttonTwo is selected it should unload the “galleryOne.swf” file that is currently loaded in the container and load the “galleryTwo.swf” file in its place.

Here’s the problem…when buttonTwo is selected it loads the “galleryTwo.swf” file and you see it for just a second, but the “galleryOne.swf” file returns to the display.

Does unloadMovie remove the targeted file from the flash player memory? It not, how do I dump it?