# Actionscript fade mc

**URL:** <https://forum.kirupa.com/t/actionscript-fade-mc/130648>\
**Category:** Uncategorized\
**Created:** [December 7, 2004, 6:38am UTC](https://forum.kirupa.com/t/actionscript-fade-mc/130648 "2004-12-07T06:38:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fso](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@fso](https://forum.kirupa.com/u/fso)\
**Post date:** [December 7, 2004, 6:38am UTC](https://forum.kirupa.com/t/actionscript-fade-mc/130648/1 "2004-12-07T06:38:08Z")

</div>

This works great for fadding a mc in but does anyone know how to switch it to fade that same mc out for a mid frame transition?

THANKS!

MovieClip.prototype.Increment = function(maxAlpha, speed) {  
this.onEnterFrame = function() {  
this.\_alpha += speed;  
if (this.\_alpha\>=maxAlpha) {  
this.\_alpha = maxAlpha;  
delete this.onEnterFrame;  
}  
};  
};  
with (clip) {  
\_alpha = 0;  
Increment(100, 15);  
}
