Hi guys ,
I have a problem trying to unload some images from a movie clip , not sure what i'm doing wrong , if anyone can help me please..
What i have is a movie clip called " thumbnails" on the stage which loads some images from an array . the movieclip "thumbnails" , holds at the begining the first 4 images , then i have a button called "next_btn" which loads the next 4 images .basically when the next_btn is click it is loading the next 4 images which place them on top of the first ones , and is fine , but what i need to do is to clear the movie clip before loads the next images into.
i have tried the unloadMovie method and it is not working , place the code below if anyone has any ideeas what i'm doing wrong ( actionscrip2 )
-
next_btn.onRelease=function(){
-
//unloadMovie ("thumbnails");
-
//thumbnails.unloadMovie();
-
trace("DFDFDS");
-
_global.position=0;
-
for (j=check_last+1; j<check_last+4; j++)
-
-
{
-
trace(" i got here");
-
this.thumbHolder = _root.thumbnails.createEmptyMovieClip("thumbnail"+position, position);
-
this.thumbHolder._x = position*spacing;
-
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
-
-
this.thumbLoader.loadMovie(images[j][3]);
-
this.thumbHolder.title =images[j][0];
-
this.thumbHolder.main = images[j][2];
-
position++;
-
this.thumbHolder.onRelease = function()
-
{
-
loader.loadMovie(this.main);
-
title_txt.text = " Price = " + this.title;
-
-
}
-
}
-
check_last=j;
-
trace (j);
-
}
-
Thanks.