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:
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:
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.