nomad 664
Recognized Expert Contributor
Hello Everyone.
I founded an Flash and xml photo gallery. It works but I took it to another step
What I want is to have six different galleries in one Flash file. I figure out how to do that but
when I click on the the galleries I can see the pervious gallery files.
The gallery works like this:
When you open the gallery there are links on top of the page where you can go to other gallery; with gallery one which has small thumbnails on the left, if you place the mouse on thumbnails a larger photo will appear in the middle.
If you click on the link for gallery two the page reloads and shows you gallery two, but it will still have some of the thumbnails from gallery one.
Is there a way to refresh the page.
here is the code.
][code]
var myGalleryXML = new XML();
myGalleryXML.ig noreWhite = true;
myGalleryXML.lo ad("gallery_bui ldings.xml");
myGalleryXML.on Load = function() {
_root.gallery_x = myGalleryXML.fi rstChild.attrib utes.gallery_x;
_root.gallery_y = myGalleryXML.fi rstChild.attrib utes.gallery_y;
_root.gallery_w idth = myGalleryXML.fi rstChild.attrib utes.gallery_wi dth;
_root.gallery_h eight = myGalleryXML.fi rstChild.attrib utes.gallery_he ight;
_root.myImages = myGalleryXML.fi rstChild.childN odes;
_root.myImagesT otal = myImages.length ;
_root.thumb_hei ght = myGalleryXML.fi rstChild.attrib utes.thumb_heig ht;
_root.thumb_wid th = myGalleryXML.fi rstChild.attrib utes.thumb_widt h;
_root.full_x = myGalleryXML.fi rstChild.attrib utes.full_x;
_root.full_y = myGalleryXML.fi rstChild.attrib utes.full_y;
callThumbs();
createMask();
scrolling();
};
function callThumbs() {
_root.createEmp tyMovieClip("co ntainer_mc",_ro ot.getNextHighe stDepth());
container_mc._x = _root.gallery_x ;
container_mc._y = _root.gallery_y ;
var clipLoader = new MovieClipLoader ();
var preloader = new Object();
clipLoader.addL istener(preload er);
for (i=0; i<_root.myImage sTotal; i++) {
thumbURL = myImages[i].attributes.thu mb_url;
myThumb_mc = container_mc.cr eateEmptyMovieC lip(i, container_mc.ge tNextHighestDep th() );
myThumb_mc._y = _root.thumb_hei ght*i;
clipLoader.load Clip("buildings/3rd/"+thumbURL,myTh umb_mc);
fullPreloader.o nLoadStart = function(target ) {
target.createTe xtField("my_txt ",target.getNex tHighestDepth() ,0,0,200,20);
target.my_txt.s electable = false;
};
preloader.onLoa dProgress = function(target , loadedBytes, totalBytes) {
target.my_txt.t ext = Math.floor((loa dedBytes/totalBytes)*100 );
};
preloader.onLoa dComplete=funct ion(target){
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.r emoveTextField( );
target.onReleas e=function(){
callFullImage(t his._name);
}
target.onRollOv er=function(){
this._alpha=50;
};
target.onRollOu t=function(){
this._alpha=100 ;
};
}
}
}
function callFullImage(m yNumber) {
myURL = myImages[myNumber].attributes.ful l_url;
myTitle = myImages[myNumber].attributes.tit le;
_root.createEmp tyMovieClip("fu llImage_mc",_ro ot.getNextHighe stDepth());
fullImage_mc._x = _root.full_x;
fullImage_mc._y = _root.full_y;
var fullClipLoader = new MovieClipLoader ();
var fullPreloader = new Object();
fullClipLoader. addListener(ful lPreloader);
fullPreloader.o nLoadStart = function(target ) {
target.createTe xtField("my_txt ",target.getNex tHighestDepth() ,0,295,200,20);
target.my_txt.s electable = false;
};
fullPreloader.o nLoadProgress = function(target , loadedBytes, totalBytes) {
target.my_txt.t ext = Math.floor((loa dedBytes/totalBytes)*100 );
};
fullPreloader.o nLoadComplete = function(target ) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.t ext = myTitle;
};
fullClipLoader. loadClip("build ings/"+myURL,fullIma ge_mc);
}
function createMask() {
_root.createEmp tyMovieClip("ma sk_mc",_root.ge tNextHighestDep th());
mask_mc._x = _root.gallery_x ;
mask_mc._y = _root.gallery_y ;
mask_mc.beginFi ll(0x000000,100 );
mask_mc.lineTo( _root.gallery_w idth,0);
mask_mc.lineTo( _root.gallery_w idth,_root.gall ery_height);
mask_mc.lineTo( 0,_root.gallery _height);
mask_mc.lineTo( 0,0);
container_mc.se tMask(mask_mc);
}
function scrolling() {
_root.onEnterFr ame = function() {
if (mask_mc._ymous e<(mask_mc._hei ght*(1/3)) || mask_mc._ymouse >(mask_mc._heig ht*(2/3))) {
container_mc._y += Math.cos(((mask _mc._ymouse)/mask_mc._height )*Math.PI)*15;
if (container_mc._ y>mask_mc._y) {
container_mc._y = mask_mc._y;
}
if (container_mc._ y<(mask_mc._y-(container_mc._ height-mask_mc._height ))) {
container_mc._y = mask_mc._y-(container_mc._ height-mask_mc._height );
}
}
};
}
import mx.transitions. Tween;
import mx.transitions. easing.*;[/CODE
I hope that made sense, I can post it on my website if need be,
Thanks any help would be great.
Nomad
0 2305 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Daniel Kelly \(AKA Jack\) |
last post by:
Hi!
I'm searching for a Photo Gallery software package (like Coppermine and
Gallery) that works, from the ground up, like a database-driven app. In
other words, I want a gallery which entirely does away with the hierarchical
structure of traditional gallery apps and allows the user to select, from a
list of criteria, whatever photos he or she wishes to see. For example,
each photo would have entries for photographer, category, date,...
|
by: matt |
last post by:
I have this code, works perfectly on Windows server, but now i'm trying
to run it on a Linux server, the form submits, i get no errors, but the
photo doesnt upload, and the caption file doesnt write.... any ideas why??
<?php
include 'gall_settings.inc';
|
by: bob garbados |
last post by:
I'm looking for thoughts on photo galleries and security/performance
implications... I'm working on an asp.net site in vb that will include an
updateable photo gallery that will display thumbnails on a page and clicking
on the thumbnails would pop open another window with the full-sized image.
The site needs a form that provides for uploading photos.
The photo gallery can be limited to a certain number of photos if need be.
What are the...
|
by: Eric Lindsay |
last post by:
I would like to do a photo gallery with a liquid layout.
I wanted to center a caption below each photo (or above each photo).
I can do that easily with tables, but then I don't have a liquid layout.
Besides, I wanted to try to do it with CSS. I can do centered captions
with text-align. This works provided the element containing each photo
is floated left. I have found several examples of how to do this.
However I didn't want the...
|
by: Audrey Pratt |
last post by:
Happy Holidays to you and allow us to play Santa this year with these awsome deals that in anyway you can refuse:
2000 Web Templates for only $18.00 (Savings Over $1,000.00)
http://bit-4-bit.com/packages/Templates/10000_templates.htm
1000 Web Templates For Only $10.00 (Savings Over $500.00)
http://bit-4-bit.com/packages/Templates/1000_templates.htm
| |
by: desjardins.daniel |
last post by:
Hi !
Excuse my english, i'm a french canadien... So here my message :
I have put on my site a photo gallery and at the right a nav menu. This
menu has a red dot visible want someone is passing over one item or
clickong one item.
I want to make two things in this page (the sameone
http://www.danieldesjardins.com/gallery/1202015) so it would be like a
|
by: Viken Karaguesian |
last post by:
Hello everyone,
Can anyone recommend a good online site to learn PHP? The W3Schools
website is quite lacking - leaves much to be desired. I'm sure there
are many places, but which ones are good?
I currently run a site with an extensive photo gallery. Hundreds of
photos. Right now I have a system which the thumbnails are laid out in
a table. You click on a thumbnail and you see the full size picture.
That full size picture is in its...
|
by: Throw |
last post by:
G'day everyone
I'm looking for a simple photo gallery script in PHP (or Perl), but not
too simple. I have tried several photo gallery scripts in either
language and I have found that they are either too complex or too
simple for my purpose. Most photo gallery scripts are intended
primarily for sharing new photos continuously and allowing visitors to
comment on them. I want something more static, which allows more text
content.
|
by: popotz |
last post by:
Hi..I really need a big help..
I was wondering how to make my own photo gallery for my own website.
The photo must be uploaded first, and then it automaticly putted into the gallery..if we click the photo, then it will go to the photo full sreen..
I don't know how to make the script for put it into the gallery..
best regards,
Erwin Chrisman
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |