# Slide show...please help

**URL:** <https://forum.kirupa.com/t/slide-show-please-help/205590>\
**Category:** Uncategorized\
**Created:** [October 31, 2006, 1:43am UTC](https://forum.kirupa.com/t/slide-show-please-help/205590 "2006-10-31T01:43:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vika](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vika](https://forum.kirupa.com/u/vika)\
**Post date:** [October 31, 2006, 1:43am UTC](https://forum.kirupa.com/t/slide-show-please-help/205590/1 "2006-10-31T01:43:24Z")

</div>

I am a new to scrippting, trying to learn, looked through dozens of tutorials…just can’t figure out how to do this : I need to create simple slide show where movie clips are rotating in loops in certain amount of time, one fades out while another fades in. I managed to do it with clicking on button. But I need to make it rotate automatically, without clicking on button .  
I put each mc on separate layer and in first frame put:

[COLOR=“Navy”]var aImages:Array = new Array(mcOne, mcTwo, mcThree, mcFour);  
var nCurrentIndex = 0;  
var nInterval:Number;

nextButton.onRelease = function():Void {  
clearInterval(nInterval);  
nInterval = setInterval (fadeImage, 50, aImages [nCurrentIndex]);

};

function fadeImage (mcImage:MovieClip):Void{  
mcImage.\_alpha -=12;

```
if(mcImage._alpha &lt;= 0) {
	clearInterval (nInterval);
nCurrentIndex++;
}
updateAfterEvent();

```

}[/COLOR]

But how can I make it work without pressing on button?
