Automate slide show

Hi All,

how’s everyone doing…

So I got this photo gallery script (see below) and I use this on buttons to update the picture…

on(release){
uploadMovie(“01”);
}

“01” being the diff. pictures

is there a way to modify the script so I can add a sequence of pictures that will autmotaically “slide show” within a certain time interval
??

thx,

m.

stagew = Stage.width+4;
//register the width of the stage
stageh = Stage.height+4;
//register the height of the stage
container._width = 0;
//Initial width of the container
container._height = 0;
//Initial height of the container
function uploadMovie(sel) {
loadhere._alpha = 0;
//Setting the alpha to 0
loadhere.loadMovie(sel+".jpg");
//loading the picture
_root.onEnterFrame = function() {
if (loadhere.getBytesLoaded() == loadhere.getBytesTotal()) {
loadhere._x = (stagew-loadhere._width)/2;
//centers the image
loadhere._y = (stageh-loadhere._height)/2;
//ditto
container._width += (loadhere._width-container._width)/3;
//changes the dimension of the container
container._height += (loadhere._height-container._height)/3;
//ditto
if (Math.round(container._width) == loadhere._width & Math.round(container._height) == loadhere._height) {
loadhere._alpha += (100-loadhere._alpha)/3;
//fade the picture in
}

	}
};

}