# Automate slide show

**URL:** <https://forum.kirupa.com/t/automate-slide-show/105274>\
**Category:** Uncategorized\
**Created:** [March 24, 2004, 5:13pm UTC](https://forum.kirupa.com/t/automate-slide-show/105274 "2004-03-24T17:13:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_mucho](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@imported\_mucho](https://forum.kirupa.com/u/imported_mucho)\
**Post date:** [March 24, 2004, 5:13pm UTC](https://forum.kirupa.com/t/automate-slide-show/105274/1 "2004-03-24T17:13:11Z")

</div>

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  
}

```
	}
};

```

}
