Hi there,

First of all i'm not Llewop, hes my friend whos been showing me flash astionscript and how to work with some templates he bought for me. I have this slideshow i want to use, and managed to get it working to a degree, but im at a loss with the delay/loop piece and all the help documents i have seen online havent made a great deal of sense.

Heres code and currently it shows first image great, then i get a 3 second delay, then it shows the second image. but thats it, so i need to add a loop around the delayed timer, and thats where i have got stuck.

this.pathToPics = "flash/images/";
this.pArray = ["image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg"];
this.fadeSpeed = 20;
this.pIndex = 0;
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
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() {
var p = _root.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;
}
};


this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};

/*TIMER*/

var my_timedProcess:Number = setTimeout(my_delayedFunction, 3000, "three second delay");

function my_delayedFunction (arg1) {
_root.changePhoto(1);
}

var escListener:Object = new Object();
escListener.onKeyDown = function() {
if (Key.isDown(Key.ESCAPE)) {
clearTimeout(my_timedProcess);
}
};
Key.addListener(escListener);

/**/
Key.addListener(this);

I appreciate any help and any advice on how this actually works cause i'm trying to get to grips with the timer/loop piece of it all also i would ask llewop but hes dissappeared for weekend and gave me access to this account and said youd all be pretty good with any help i need?

Ta, Steve