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.
-
<div id="flashgallery"><script type="text/javascript" src="http://theauctionwinners.com/resources/temp/swfobject.js"></script>
-
-
<div id="flashcontent">
-
This text is replaced by the Flash movie.
-
</div>
-
-
<script type="text/javascript">var so = new SWFObject("http://theauctionwinners.com/resources/upload/99708922/gallery.swf", "gallery", "518", "536", "8", "#FFFFFF");
-
so.addParam("quality", "high");
-
so.addParam("wmode", "transparent");so.addVariable("tempURL","http://theauctionwinners.com/resources/upload/99708922/"); so.write("flashcontent");
-
</script>
-
this is the actionscript that processes the gallery
-
stop();
-
trace( tempURL );
-
//specify the url where folder is located below (if applicable)
-
toadd=tempURL;
-
t = 0;
-
l = 0;
-
theside = 1;
-
galxml = new XML();
-
galxml.load(toadd+"gallery.xml");
-
galxml.ignoreWhite = true;
-
galxml.onLoad = function(success) {
-
if (success) {
-
maxnum = galxml.firstChild.childNodes.length;
-
for (n=0; n<maxnum; n++) {
-
specs = galxml.firstChild.childNodes[n];
-
//TEXT FOR SIDE NAV
-
duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
-
thumbclip = eval("side.thumbs.thumbs"+n);
-
thumbclip._x = n*100;
-
thumbclip.thetitle = specs.attributes.name;
-
thumbclip.thecaption = specs.attributes.caption;
-
thumbclip.thenum = n+1;
-
thumbclip._alpha = 100;
-
loadMovie(toadd+"images/"+(n+1)+"b.jpg", thumbclip.thumbload.thumbload2);
-
play();
-
side.thumbs.thumbsb._visible = false;
-
}
-
}
-
};
-
mainperc.onEnterFrame = function() {
-
if (mainperc.perc<98) {
-
mainperc._alpha += 5;
-
}
-
mainperc.perc = Math.round(l/t*100);
-
mainperc.perctext = mainperc.perc+"%";
-
mainperc.ltext = "OF THUMBNAILS LOADED ("+Math.round(t/1024)+"kb)";
-
if (mainperc.perc>98) {
-
//mainperc._alpha -= 5;
-
}
-
if (mainperc._alpha<-50) {
-
delete mainperc.onEnterFrame;
-
}
-
};
-
-
-
var lvContent:LoadVars = new LoadVars();
-
lvContent.load("http://myhost.com/myvarstoflash.php?username=dotbart");
-
trace("Who: " + lvContent.who);
-
//Outputs: Who: dotbart
-
here is a link to an example of the gallery
example link