I have been attempting to build a slideshow for a site I'm creating. The actionscript I have dynamically loads .jpgs into a MC called photoMC along with a .txt file that gives a little description of each photo. There are also "next" and "previous" buttons that allow you to scroll through the rotation of pictures.

My problem is that is works perfectly when on my desktop, but as soon as I upload it to my server, the photos will not load at all.

I have included the Actionscript for the slideshow with this post. Maybe one of your Flash gurus can point out something that may correct my problem.

//------ActionScript-----//
var slideInfoLV:LoadVars = new LoadVars();
slideInfoLV.onload = function(success) {
if (success) {
slideCounter();
} else {
frameNum.text = "error";
}
};
slideInfoLV.load("slide_info.txt");
//----------------------//
var myMCL:MovieClipLoader = new MovieClipLoader();
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
loadedInfo.htmlText = myLV.info;
} else {
loadedInfo.text = "There has been an error loading the requested information. Please contact the Webmaster and report your error.";
}
};
var curFrameNum:Number = 0;
function loadFrame() {
myMCL.loadClip("photo/photo"+curFrameNum+".jpg", _root.photoMC);
myLV.load("photo/photo"+curFrameNum+".txt");
}
function slideCounter() {
frameNum.text = ("Photo "+(curFrameNum+1)+" of "+Number(slideInfoLV.totalFrames));
}
loadFrame();
//----------------------//
this.nextSlideBtn.onRelease = function() {
if (curFrameNum<Number(slideInfoLV.totalFrames)-1) {
curFrameNum++;
} else {
curFrameNum = 0;
}
loadFrame();
slideCounter();
};
this.prevSlideBtn.onRelease = function() {
if (curFrameNum == 0) {
curFrameNum = Number(slideInfoLV.totalFrames)-1;
} else {
curFrameNum--;
}
loadFrame();
slideCounter();
};