# \_alpha fading using actionscript Help?

**URL:** <https://forum.kirupa.com/t/-alpha-fading-using-actionscript-help/175290>\
**Category:** Uncategorized\
**Created:** [January 13, 2006, 5:00am UTC](https://forum.kirupa.com/t/-alpha-fading-using-actionscript-help/175290 "2006-01-13T05:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maccapug](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@maccapug](https://forum.kirupa.com/u/maccapug)\
**Post date:** [January 13, 2006, 5:00am UTC](https://forum.kirupa.com/t/-alpha-fading-using-actionscript-help/175290/1 "2006-01-13T05:00:00Z")

</div>

Hello,

I have eight images in a MC that I would like to sequentially fade in, display for a few seconds and fade out using \_alpha function. So far I can fade one in with this AS:

img1.\_alpha=0

img1.onEnterFrame = function() {  
this.\_alpha +=10;  
}

Assuming my instances are img1, img2, img3, etc, etc… how would I go about sequentially fading each instance from 0 to 100, letting it display on the stage for a few seconds and then fade out (like a slideshow)?

Any help would be greatly appreciated!

Macca
