# Random image + fade in WHILE fadeing out

**URL:** <https://forum.kirupa.com/t/random-image-fade-in-while-fadeing-out/164926>\
**Category:** Uncategorized\
**Created:** [October 6, 2005, 2:07am UTC](https://forum.kirupa.com/t/random-image-fade-in-while-fadeing-out/164926 "2005-10-06T02:07:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eien\_kisu](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@eien\_kisu](https://forum.kirupa.com/u/eien_kisu)\
**Post date:** [October 6, 2005, 2:07am UTC](https://forum.kirupa.com/t/random-image-fade-in-while-fadeing-out/164926/1 "2005-10-06T02:07:33Z")

</div>

Hi, I wanted to do this effect…

1. The movie randomly selects an image i imported to the Library. (eg. pic1\_mc, pic2\_mc, pic3\_mc)

2. Then, I wanted the chosen pic (eg. pic3\_mc) to fade in.

3. After a period of time, say 30 secs, The movie selects another pic randomly, say, pic2\_mc, then, here comes the part: I want to **fade in** \*this chosen image (pic2\_mc) \ ***WHILE** the _previous pic (pic3\_mc)_ **fades out**.

4. This animation then loops.

I tried using an array to generate the images randomly, it works… But i have problems with the fade-in WHILE fade-out…
