# Clearing thumbnail\_mc in Photo Gallery

**URL:** <https://forum.kirupa.com/t/clearing-thumbnail-mc-in-photo-gallery/215435>\
**Category:** flash\
**Created:** [February 7, 2007, 9:07am UTC](https://forum.kirupa.com/t/clearing-thumbnail-mc-in-photo-gallery/215435 "2007-02-07T09:07:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxykav](https://avatars.discourse-cdn.com/v4/letter/f/3be4f8/32.png) [@foxykav](https://forum.kirupa.com/u/foxykav)\
**Post date:** [February 7, 2007, 9:07am UTC](https://forum.kirupa.com/t/clearing-thumbnail-mc-in-photo-gallery/215435/1 "2007-02-07T09:07:08Z")

</div>

I was wondering if anyone knows how to clear the thumbnails created by the thumbnail\_fn() function in the thumbanail photo gallery.

This is the function:

```auto
function thumbnails_fn(k) {
    
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
        target_mc._x = hit_left._x+(target_mc._width+5)*k;
        target_mc.pictureValue = k;
        target_mc.onRelease = function() {
            p = this.pictureValue-1;
            nextImage();
        };
        
        target_mc.onRollOver = function() {
            this._alpha = 50;
            thumbNailScroller();
        };
        
        target_mc.onRollOut = function() {
            this._alpha = 100;
        };
        
    };
    
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

```

The thumbnails created are place in the thumbnail\_mc movieclip. I want to clear the movieclip so I can reload another set of photos into the movieclip. I have tried to clear the thumbnail\_mcmovieclip (where the function thumbnail\_mc loads the thumbnails) by using:

```auto
thumbnail_mc.clear();

```

But this has no results. I think this is becuase the seperate thumbnail movieclips that are created by the thumbnail\_fn() function are placed at different depths (well that’s what I think is happening …)

Anyone know how to clear the the movieclip but not destroy/delete it?

P.S I can’t post my .fla as it’s too large.
