# Photo Gallery using XML and Flash - dual alpha?

**URL:** <https://forum.kirupa.com/t/photo-gallery-using-xml-and-flash-dual-alpha/155197>\
**Category:** flash\
**Created:** [July 15, 2005, 11:51am UTC](https://forum.kirupa.com/t/photo-gallery-using-xml-and-flash-dual-alpha/155197 "2005-07-15T11:51:58Z")\
**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, 11:51am UTC](https://forum.kirupa.com/t/photo-gallery-using-xml-and-flash-dual-alpha/155197/1 "2005-07-15T11:51:58Z")

</div>

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

function nextImage() {  
if (p\<(total-1)) {  
p++;  
if (loaded == filesize) {  
picture.\_alpha = 0;  
picture.loadMovie(image[p], 1);  
desc\_txt.text = description[p];  
picture\_num();  
}  
}  
}
