Hi, I’m building a Flash website that uses MySQL a lot…
When you click on the first model on the site, there appears 2 thumbnails (black squares) when you click the 1st one, the pic loads, with preloader, but the second one doesn’t, although the path is correct and the image is on the server. What could be wrong?
Here’s the mockup in progress:
http://www.eyecatchers-models.com/v1/
When you click on the thumbnail I use this script:
var ob = this["mc_picture"];
var id = _root.flash_modelID;
var path = _root.array_modellist_firstname[id]+_root.array_modellist_surname[id]+"/";
var filename = _root.array_modellist_firstname[id]+_root.array_modellist_surname[id]+who.internalID_pics+".jpg";
var picToLoad = "gallery/models/"+path+filename;
bla.text=picToLoad;
ob.holder._alpha = 0;
ob.holder.loadMovie(picToLoad);
On the root also this:
this.onEnterFrame = function() {
// picture preloader
var obPic = this["mc_picture"];
var filesize = obPic.holder.getBytesTotal();
var loaded = obPic.holder.getBytesLoaded();
obPic.preloader._visible = true;
if (loaded != filesize) {
obPic.preloader.preload_bar._xscale = 100*loaded/filesize;
}
else {
obPic.preloader._visible = false;
if (obPic.holder._alpha<100) {
obPic.holder._alpha += 5;
}
}
}
This is based on Kirupa’s GREAT photogallery tutorial. (thank you btw for the great tut)
Someone got any ideas? Thx in advance.