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.
1 2683
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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
|
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...
|
by: nagraj |
last post by:
hi
i have a problem in flash .how to call a movieclip to another movieclip give _root
|
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...
| |
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:
|
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: ...
|
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);
}
|
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;
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |