Please Help - Trouble with Kirupa Slideshow


I have used the Kirupa slide show before with no problem. Works great.

I am using it for another client, now I can’t get the images to show up. I been over the code and everything is fine. Nothing has changed except the image names.

Here is the code as it appears. Please help, I am in a major crunch. I have been trying to figure this out for days.

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 = “images/”;
// fill this array with your pics
this.pArray = [“travel0.jpg”, “travel1.jpg”, “travel2.jpg”, “travel3.jpg”, “travel.jpg”, “travel.jpg”, “travel6.jpg”, “travel7.jpg”, “travel8.jpg”, “travel9.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
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.fadeSpeed) { -= this.fadeSpeed;
} else {
MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p =;
p._alpha = 0;
this.onEnterFrame = loadMeter;
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l =;
t =;
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
MovieClip.prototype.fadeIn = function() {
if (<100-this.fadeSpeed) { += this.fadeSpeed;
} else { = 100;
this.onEnterFrame = null;
// Actions -----------------------------------------
// these aren’t necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
} else if (Key.getCode() == Key.RIGHT) {

Hey Scotty,

Not sure I am following you. Please excuse my ignorance. What do you mean exactly?


I was wondering if anyone knows how to preload the images for the slideshow? There is too much lag time between each picture.

go here to see what I mean:

Thanks so much!

My bad;)
If you’re using the slideshow as standalone and the pictures don’t show up, be sure that your pictures are in the non-progressive jpg format.
If you’re loading the slideshow in a main movie, have a look at your code, you’ll find two time “”, change that in “”. The same for your buttons. Hope this will help:)


Scotty, thanks a million. That was the solution. I also resaved with the nonprogressive jpg. Works like a charm. Thank you. You are a real life saver. I owe ya one and many more to come :smiley:




Everything worked fine on with the first slide show. I did a save as to use for another client. I changed nothing except the size of the images and photomc. It works locally on my machine just fine. But when I upload it to my server, the images do not show up. What is it this time. And do you have a more reliable cool slideshow that I cound use. This one seems to fragile.

I don’t think there’s something wrong with the slideshow. It’s us, the people that use it:lol:
It’s probably a path issue, are the pictures in a folder “images”?[size=1](looking at the script above)[/size]
If you’ve checked that and it still not working post your fla?