# Help with suprabeener slideshow

**URL:** <https://forum.kirupa.com/t/help-with-suprabeener-slideshow/193866>\
**Category:** Uncategorized\
**Created:** [July 18, 2006, 9:48pm UTC](https://forum.kirupa.com/t/help-with-suprabeener-slideshow/193866 "2006-07-18T21:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davich64](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/davich64/32/2577_2.png) [@davich64](https://forum.kirupa.com/u/davich64)\
**Post date:** [July 18, 2006, 9:48pm UTC](https://forum.kirupa.com/t/help-with-suprabeener-slideshow/193866/1 "2006-07-18T21:48:06Z")

</div>

Hi, I have been having problems with suprabeener’s slideshow script. I have modified the paths in order to open my pictures and it works perfectly when I test in in my pc, but when i upload it to my server pictures wont show. I uploaded everything exatly to the same paths I have in my pc to my server. Im loading my slideshow from inside a html on my site. Can anyone help me?, i guess i have to change something in my code to make it work in my site but i cant figure out what.

Thanks  
davich64

here’s my code:

//Code written by sbeener (suprabeener)  
/\*  
i wrote this code, but you can use and abuse it however you like.  
the methods are defined in the order which they occur to make it  
easier to understand.  
\*/  
// variables ------------------------------------------  
// put the path to your pics here, include the slashes (ie. “pics/”)  
// leave it blank if they’re in the same directory  
this.pathToPics = “imagenes/cuer/”;  
// fill this array with your pics  
this.pArray = [“image0.jpg”, “image1.jpg”, “image2.jpg”, “image3.jpg”, “image4.jpg”, “image5.jpg”, “image6.jpg”, “image7.jpg”, “image8.jpg”, “image9.jpg”, “image10.jpg”, “image11.jpg”, “image12.jpg”, “image13.jpg”, “image14.jpg”, “image15.jpg”, “image16.jpg”, “image17.jpg”, “image18.jpg”, “image19.jpg”, “image20.jpg”, “image21.jpg”, “image22.jpg”, “image23.jpg”, “image24.jpg”, “image12.jpg”, “image25.jpg”, “image26.jpg”, “image27.jpg”, “image28.jpg”, “image29.jpg”, “image30.jpg”, “image31.jpg, image32.jpg”, “image33.jpg”, “image34.jpg”, “image35.jpg”, “image36.jpg”, “image37.jpg”, “image38.jpg”, “image39.jpg”, “image40.jpg”, “image41.jpg”, “image42.jpg”, “image43.jpg”, “image44.jpg”, “image45.jpg”, “image46.jpg”, “image47.jpg”, “image48.jpg”, “image49.jpg”, “image50.jpg”, “image51.jpg”, “image52.jpg”, “image53.jpg”, “image54.jpg”, “image55.jpg”, “image56.jpg”, “image57.jpg”];  
this.fadeSpeed = 20;  
this.pIndex = 0;  
// MovieClip methods ----------------------------------  
// d=direction; should 1 or -1 but can be any number  
//loads an image automatically when you run animation  
loadMovie(this.pathToPics+this.pArray[0], \_level0.photo);  
MovieClip.prototype.changePhoto = function(d) {  
// make sure pIndex falls within pArray.length  
this.pIndex = (this.pIndex+d)%this.pArray.length;  
if (this.pIndex\<0) {  
this.pIndex += this.pArray.length;  
}  
this.onEnterFrame = fadeOut;  
};  
MovieClip.prototype.fadeOut = function() {  
if (this.photo.\_alpha\>this.fadeSpeed) {  
this.photo.\_alpha -= this.fadeSpeed;  
} else {  
this.loadPhoto();  
}  
};  
MovieClip.prototype.loadPhoto = function() {  
// specify the movieclip to load images into  
var p = \_level0.photo;  
//------------------------------------------  
p.\_alpha = 0;  
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);  
this.onEnterFrame = loadMeter;  
};  
MovieClip.prototype.loadMeter = function() {  
var i, l, t;  
l = this.photo.getBytesLoaded();  
t = this.photo.getBytesTotal();  
if (t\>0 && t == l) {  
this.onEnterFrame = fadeIn;  
} else {  
trace(l/t);  
}  
};  
MovieClip.prototype.fadeIn = function() {  
if (this.photo.\_alpha\<100-this.fadeSpeed) {  
this.photo.\_alpha += this.fadeSpeed;  
} else {  
this.photo.\_alpha = 100;  
this.onEnterFrame = null;  
}  
};  
// Actions -----------------------------------------  
// these aren’t necessary, just an example implementation  
this.onKeyDown = function() {  
if (Key.getCode() == Key.LEFT) {  
this.changePhoto(-1);  
} else if (Key.getCode() == Key.RIGHT) {  
this.changePhoto(1);  
}  
};  
Key.addListener(this);
