[f8]Images not loading when swf put on server
Hi
I am having a problem with a xml photo gallery that I am writing. The problem lies within code to display thumbnails to enable a user to select the larger image to display (pretty standard stuff for a galley). This code works fine when I use it on my home PC, all external thumbnails load into the swf fine. But when I upload the code to the server, the tumbnails that I am loading (using MovieClipLoader) are not displaying at random (i.e 4 will load 2 will not). I have put a onLoadError handler so that a error can be flashed up when a image fails to load but this is never invoked so I am guessing that flash thinks it has loaded the image. It would be a great help if someone could look at my code and tell me where I am going wrong.
code:
function te(i)
{
thumbCreator(i+1);
trace("thumb created");
}
function thumbCreator(i)
{
if (i < nImages)
{
this.butscroll.attachMovie("gal_buttons", "but" + i + "_mc", i);
this.butscroll["but" + i + "_mc"]._y = pos;
this.butscroll["but" + i + "_mc"]._x = 30 ;
var mclListener:Object = new Object();
mclListener.onLoadComplete = function(target_mc:MovieClip) {
te(i);
};
mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number) {
err(errorCode);
};
var logo_mcl:MovieClipLoader = new MovieClipLoader();
logo_mcl.addListener(mclListener);
logo_mcl.loadClip(thumb[i], this.butscroll["but" + i + "_mc"].picture);
this.butscroll["but" + i + "_mc"].num = i;
this.butscroll["but" + i + "_mc"].picname = image[i];
this.butscroll["but" + i + "_mc"]._alpha = 50;
this.butscroll["but" + i + "_mc"].sel = false;
pos = pos + 65.5;
trace("pos" + pos);
}
}
//in main code
if (nImages > 0)
{
te(-1);
}