473,425 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Help with unload images from movieclip

42
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 )

Expand|Select|Wrap|Line Numbers
  1. next_btn.onRelease=function(){
  2.      //unloadMovie ("thumbnails");
  3.      //thumbnails.unloadMovie();
  4.      trace("DFDFDS");
  5.      _global.position=0;
  6.     for (j=check_last+1; j<check_last+4; j++) 
  7.  
  8.                     {        
  9.                         trace(" i got here");
  10.                         this.thumbHolder = _root.thumbnails.createEmptyMovieClip("thumbnail"+position, position);
  11.                         this.thumbHolder._x = position*spacing;
  12.                         this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
  13.  
  14.                         this.thumbLoader.loadMovie(images[j][3]);
  15.                         this.thumbHolder.title =images[j][0];
  16.                         this.thumbHolder.main = images[j][2];
  17.                         position++;
  18.                         this.thumbHolder.onRelease = function() 
  19.                             {
  20.                             loader.loadMovie(this.main);
  21.                             title_txt.text = " Price = " + this.title;
  22.  
  23.                             }
  24.                     }
  25.                     check_last=j;
  26.                     trace (j);
  27. }
  28.  
Thanks.
Jul 10 '09 #1
1 2656
onyris
42
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
Jul 16 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: JGBNS via DotNetMonster.com | last post by:
Hi, I am new to this forumand I apologize as i am not a .net programmer but we have a program being developed by a .net programmer. Nowwe have run into an ftp snag and I think it is part ftp and...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
elamberdor
by: elamberdor | last post by:
Hi All! Well, i'm modifying a dynamic map, with lat and long datapoints, my problem is it loads in text perfectly onto exact points I specify on the map, ..well now I want to load in...
1
by: nagraj | last post by:
hi i have a problem in flash .how to call a movieclip to another movieclip give _root
0
by: diegocami | last post by:
Hi everyone!, I need some directions on how to get my "sweeping bar effect" to work, I´ll try to explain myself: Situation: I have a couple of buttons that should attach (that´s the method I´m...
11
by: Stevo | last post by:
I've been using the unload event for a long time. I have this code, which I've abstracted and made into a stripped down simple test case below, and it works fine on the major browsers (IE5+,...
1
by: ZenQuickZen | last post by:
This is a script for a character that walks in 4 directions. That works fine. I have also added other random movieclip animations for other keystrokes. I want a movie clip to play through when a...
1
by: chromis | last post by:
Hi, This should be really simple to do and has really got me stumped. I have a movieclip inside a button, the button is called my_btn and the movieclip is called my_movie. What i want to happen is...
0
anfetienne
by: anfetienne | last post by:
ive been through a tutorial on using array for a gallery and wrote the following code. i need to include thumbnails with left and right buttons on each side to scroll through the thumbnails MY...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.