473,699 Members | 2,433 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with unload images from movieclip

42 New Member
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 2683
onyris
42 New Member
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
2044
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 part .net coding. Heres the issue.. We have an image directory full of photos like 200,000 in it, and if you use an ftp client to ftp to the site and then navagate to that file it will try
0
5569
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
2
3734
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 icons(images) instead of text. (yes i'm being difficult) and i'd like the text to load into a static placeholder symbol instead. Problem is, I can get images to load in a separate file, text to load in a separate file, and text to appear in a static...
1
2375
by: nagraj | last post by:
hi i have a problem in flash .how to call a movieclip to another movieclip give _root
0
1359
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 using)different movieclips (one each) to an empty "mc_container" on stage. There is an attached movieclip by default (let´s call it "mc_1") . So when the user clicks on the "button_2" for example, there´s a bar that "sweeps" over (or covers...
11
2441
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+, Firefox, Opera). It also works for all Safari versions before 3.1. It's as if they've deliberately made a change to prevent some actions in the unload handler. Has anyone heard of such a restriction? Here's the test case:
1
3754
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 key is pressed. Right now the movieclip only plays while the key is being held. How do I get it to continue to play even if the key is released? I am not sure if I need to add something to my action script or change it entirely. Here is my script: ...
1
3570
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 the movieclip goes to frame two when the button is rolled over, so i added this code to test the reference to the button: my_button.onRollOver = function() { trace(this.my_movie); }
0
1678
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 CODE #include "64516994.txt" this.fadeSpeed = 20; this.pIndex = 0;
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9034
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7750
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.