# Mini slideshow

**URL:** https://forum.kirupa.com/t/mini-slideshow/196055
**Category:** Uncategorized
**Created:** [August 5, 2006, 12:20am UTC](https://forum.kirupa.com/t/mini-slideshow/196055 "2006-08-05T00:20:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![robinkmedia](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@robinkmedia](https://forum.kirupa.com/u/robinkmedia)
#### Post date: [August 5, 2006, 12:20am UTC](https://forum.kirupa.com/t/mini-slideshow/196055/1 "2006-08-05T00:20:22Z")

</div>

I’m about to throw my laptop out the window- this is driving me so crazy.  
On my main timeline I have a movieclip- that should fade down images- revealing the ones beneath.  
The images are called pic1, pic2, etc.  
So this script is INSIDE the mc- anyone know why it isn’t working?  
Could it be a scope thing?

var currentPic:Number = 1;  
var picSpeed:Number = 5;  
var picTime:Number = 2000;  
//  
//  
init ();  
//  
//  
function init () {  
timer = setInterval (slideShow, picTime);  
}  
//  
//  
function slideShow () {  
var thisPic = this[“pic” + currentPic];  
onEnterFrame = function () {  
trace (currentPic);  
thisPic.\_alpha -= picSpeed;  
if (thisPic.\_alpha \<= 0) {  
thisPic.\_alpha = 0;  
}  
};  
currentPic++;  
}  
//  
//

Man- it would so rule if someone could help…
