473,421 Members | 1,595 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,421 software developers and data experts.

gallery glitch

anfetienne
424 256MB
hi, i've got a flash gallery which i've paid for. Im using swf object to import vars to the gallery....the var being imported is a html address to specify the location of files and folders. The problem is that the gallery detects the thumbnails and loads the 1st image but once i click on another image it wont load, i don't know why it it doing this and as it loads the thumbnails which are in the same location it shouldn't have a problem displaying the full-size images. here are the codes in step from swfobject.

Expand|Select|Wrap|Line Numbers
  1.                             <div id="flashgallery"><script type="text/javascript" src="http://theauctionwinners.com/resources/temp/swfobject.js"></script>
  2.  
  3. <div id="flashcontent">
  4.   This text is replaced by the Flash movie.
  5. </div>
  6.  
  7. <script type="text/javascript">var so = new SWFObject("http://theauctionwinners.com/resources/upload/99708922/gallery.swf", "gallery", "518", "536", "8", "#FFFFFF");
  8.    so.addParam("quality", "high");
  9.    so.addParam("wmode", "transparent");so.addVariable("tempURL","http://theauctionwinners.com/resources/upload/99708922/");   so.write("flashcontent");
  10. </script>  
  11.  
this is the actionscript that processes the gallery
Expand|Select|Wrap|Line Numbers
  1. stop();
  2. trace( tempURL );
  3. //specify the url where folder is located below (if applicable)
  4. toadd=tempURL;
  5. t = 0;
  6. l = 0;
  7. theside = 1;
  8. galxml = new XML();
  9. galxml.load(toadd+"gallery.xml");
  10. galxml.ignoreWhite = true;
  11. galxml.onLoad = function(success) {
  12.     if (success) {
  13.         maxnum = galxml.firstChild.childNodes.length;
  14.         for (n=0; n<maxnum; n++) {
  15.             specs = galxml.firstChild.childNodes[n];
  16.             //TEXT FOR SIDE NAV
  17.             duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
  18.             thumbclip = eval("side.thumbs.thumbs"+n);
  19.             thumbclip._x = n*100;
  20.             thumbclip.thetitle = specs.attributes.name;
  21.             thumbclip.thecaption = specs.attributes.caption;
  22.             thumbclip.thenum = n+1;
  23.             thumbclip._alpha = 100;
  24.             loadMovie(toadd+"images/"+(n+1)+"b.jpg", thumbclip.thumbload.thumbload2);
  25.             play();
  26.             side.thumbs.thumbsb._visible = false;
  27.         }
  28.     }
  29. };
  30. mainperc.onEnterFrame = function() {
  31.     if (mainperc.perc<98) {
  32.         mainperc._alpha += 5;
  33.     }
  34.     mainperc.perc = Math.round(l/t*100);
  35.     mainperc.perctext = mainperc.perc+"%";
  36.     mainperc.ltext = "OF THUMBNAILS LOADED ("+Math.round(t/1024)+"kb)";
  37.     if (mainperc.perc>98) {
  38.         //mainperc._alpha -= 5;
  39.     }
  40.     if (mainperc._alpha<-50) {
  41.         delete mainperc.onEnterFrame;
  42.     }
  43. };
  44.  
  45.  
  46. var lvContent:LoadVars = new LoadVars();
  47. lvContent.load("http://myhost.com/myvarstoflash.php?username=dotbart");
  48. trace("Who: " + lvContent.who);
  49. //Outputs: Who: dotbart
  50.  
here is a link to an example of the gallery
example link
Jun 8 '09 #1
2 2287
anfetienne
424 256MB
anybody have any idea why?
Jun 30 '09 #2
anfetienne
424 256MB
can someone please point me in the right direction to solving this problem?

my guess is that i have to put in the xml the location of each image but as i dont know actionscript to well i wouldn't know if this is correct or not
Jul 7 '09 #3

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

Similar topics

10
by: Captain Ranger McCoy | last post by:
Hello! Suppose I have ten servers at ten ips: x.x.x.1 x.x.x.2 x.x.x.3 x.x.x.4 and so on Each server hosts 100+ photo galleries, all under a single domain name,
54
by: Max Quordlepleen | last post by:
Apologies for the crossposting, I wasn't sure which of these groups to ask this in. I have been lurking in these groups for a week or so, trying to glean what I need to design a simple, clean...
11
by: Ted Mayett | last post by:
OK. Here is a glitch, sorry if this has been mentioned before. This is an erratic glitch. I am now up to three other people besides myself who have been able to see this glitch. It seems it...
7
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...
1
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...
11
by: ste | last post by:
Hi there, Further to my recent posts where I've received excellent help from Rik and Jerry, I've ended up with an image gallery on my website that displays images in a table, 3 images per row. ...
1
by: gescom | last post by:
My goal is to create essentially two galleries on a single page, in which the first gallery determines what the second gallery displays. For instance, the first gallery refers to the contents of the...
11
by: shror | last post by:
hi every body I need help please i have designed an image gallery of about 20 pictures and they are shown in thumb nail views and for viewing the largeer version of the images i have added a...
0
nomad
by: nomad | last post by:
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 ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
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...
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
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: 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...

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.