# Fade in while fade out...?

**URL:** https://forum.kirupa.com/t/fade-in-while-fade-out/155203
**Category:** flash
**Created:** [July 15, 2005, 12:37pm UTC](https://forum.kirupa.com/t/fade-in-while-fade-out/155203 "2005-07-15T12:37:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![woot](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@woot](https://forum.kirupa.com/u/woot)
#### Post date: [July 15, 2005, 12:37pm UTC](https://forum.kirupa.com/t/fade-in-while-fade-out/155203/1 "2005-07-15T12:37:03Z")

</div>

In the Tut: Photo Gallery using XML and Flash, the outgoing image is faded to 0 **BEFORE** the imcoming image is faded to 100. Is it possible to get the imcoming image to fade in **WHILE** the outgoing image is be faded out?

Here is some of the tut’s code:  
function nextImage() {  
[color=blue]if (p\<(total-1)) {  
p++;  
if (loaded == filesize) {  
picture.\_alpha = 0;  
picture.loadMovie(image[p], 1);  
desc\_txt.text = description[p];  
picture\_num();  
}  
}  
}[/color]
