# Gradualy lower the alpha from 100 - 0

**URL:** <https://forum.kirupa.com/t/gradualy-lower-the-alpha-from-100-0/218882>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 4:28am UTC](https://forum.kirupa.com/t/gradualy-lower-the-alpha-from-100-0/218882 "2007-03-12T04:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marito](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@marito](https://forum.kirupa.com/u/marito)\
**Post date:** [March 12, 2007, 4:28am UTC](https://forum.kirupa.com/t/gradualy-lower-the-alpha-from-100-0/218882/1 "2007-03-12T04:28:06Z")

</div>

Hi!

I would like to gradualy take lower the \_alpha from 100 - 0 through actionscript. I found this in the actionscript archive of Kirupa.

function disappear(){  
//call onEnterFrame dynamic event handler  
\_root[“clip1”].onEnterFrame = function(){  
//decrement alpha by 5  
this.\_alpha -= 5  
//if the alpha is less than or equal to 25  
if (this.\_alpha \<= 25){  
//set the alpha to 25  
this.\_alpha = 25  
//delete the onEnterFrame to stop decrementing the alpha  
delete this.onEnterFrame  
}  
}

}

can i use this to target an instance ?

how would I do it if the instance is id\_mc and it is in the \_parent.

thank u in advance.  
.M
