Help with unload images from movieclip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onyris
    New Member
    • Aug 2008
    • 42

    Help with unload images from movieclip

    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 )

    Code:
    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.
  • onyris
    New Member
    • Aug 2008
    • 42

    #2
    guys ..this is getting me crazy ..

    i have added a new button on the stage and i've placed the " unloadMovie ( thumbnails)"
    there .
    When the button is clicked its emptying the movie clip and is ok , then i click next and is loading the next images ,
    BUT if i place the code so that when i press next to empty the images ..is just emptying the movieclip and is not dispalying the next images WHYYYY...ANYONE ...PLSSS

    Comment

    Working...