# Xml gallery unload problem

**URL:** <https://forum.kirupa.com/t/xml-gallery-unload-problem/317008>\
**Category:** Uncategorized\
**Created:** [December 7, 2010, 10:13pm UTC](https://forum.kirupa.com/t/xml-gallery-unload-problem/317008 "2010-12-07T22:13:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![strawberry](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@strawberry](https://forum.kirupa.com/u/strawberry)\
**Post date:** [December 7, 2010, 10:13pm UTC](https://forum.kirupa.com/t/xml-gallery-unload-problem/317008/1 "2010-12-07T22:13:33Z")

</div>

I am loading this xml gallery (  
[[COLOR=#800080]http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery9.htm[/COLOR]](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery9.htm)  
) into my main swf using the following code on the timeline:

```auto

var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("myGalleryContainer",3);
myGalleryContainer._lockroot=true;
loader.loadClip("portfolio3.swf",myGalleryContainer);

```

I cannot seem to unload the images when I want to load another swf…can someone help me please?
