# Help With Slideshow Fade-in / Fade-out

**URL:** <https://forum.kirupa.com/t/help-with-slideshow-fade-in-fade-out/177763>\
**Category:** flash\
**Created:** [February 5, 2006, 1:18am UTC](https://forum.kirupa.com/t/help-with-slideshow-fade-in-fade-out/177763 "2006-02-05T01:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DirtyApe](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DirtyApe](https://forum.kirupa.com/u/DirtyApe)\
**Post date:** [February 5, 2006, 1:18am UTC](https://forum.kirupa.com/t/help-with-slideshow-fade-in-fade-out/177763/1 "2006-02-05T01:18:52Z")

</div>

After browsing through the forum, I found this great actionscript to randomly load images into a blank movieclip. This is much simpler than the script I have been using. Below is the actionscript:

```auto
rNum = random(50)+1;
_root.blankmovie.loadMovie(rNum+".jpg");
function mcPlay() {
        play();
        clearInterval(myInterval);
}
myInterval = setInterval(mcPlay, 10000);
stop();

```

How would I alter this script so it fades-in the random image, waits 10 seconds, fades-out the image, and then fades-in a new random image and repeats this process? I guess it would do something with alpha, but I don’t know how to do it. If you could, please re-paste this script with the changes in it because I’m not very good at writing actionscript. I’ll appreciate any help!
