# Question about clearing a MovieClip - unloadMovie()?

**URL:** <https://forum.kirupa.com/t/question-about-clearing-a-movieclip-unloadmovie/211856>\
**Category:** Uncategorized\
**Created:** [January 5, 2007, 8:24pm UTC](https://forum.kirupa.com/t/question-about-clearing-a-movieclip-unloadmovie/211856 "2007-01-05T20:24:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exboywonder](https://avatars.discourse-cdn.com/v4/letter/e/ad7895/32.png) [@exboywonder](https://forum.kirupa.com/u/exboywonder)\
**Post date:** [January 5, 2007, 8:24pm UTC](https://forum.kirupa.com/t/question-about-clearing-a-movieclip-unloadmovie/211856/1 "2007-01-05T20:24:07Z")

</div>

I have an XML photo album that I’m building which displays thumbnails based on a combBox selection. The thumbnails are generated via createEmptyMovieClip within a movieClip with an instance called thumbnail\_mc.

My problem is… once the thumbnails populate and another selection is made from the comboBox the current thumbnails need to be removed before the new once are populated.

I’ve tried calling thumbnail\_mc.unloadMovie() to clear the movieClip before calling the function to populate the new thumbnails. But it doesn’t seem to work. The new thumbs don’t appear.

My script looks like this on comboBox selection:

[COLOR=RoyalBlue]\*//clear thumbnail container movie clip  
thumbnail\_mc.unloadMovie()

//build an array containing all thumbs for selected album  
thumbnails = [];

```
imagesTotal = selectedAlbum.childNodes.length;
for (i = 0; i &lt; imagesTotal; i++) {
	thumbnails*	* = selectedAlbum.childNodes.attributes.thumb;

            // generate image for each thumbnail via function
            thumbnails_fn(i);
}	

```

}\* [/COLOR]

Any help or suggestions would be greatly appreciated!
