# Fading text bu action script

**URL:** <https://forum.kirupa.com/t/fading-text-bu-action-script/44687>\
**Category:** Uncategorized\
**Created:** [March 6, 2004, 2:31pm UTC](https://forum.kirupa.com/t/fading-text-bu-action-script/44687 "2004-03-06T14:31:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash\_legend](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@flash\_legend](https://forum.kirupa.com/u/flash_legend)\
**Post date:** [March 6, 2004, 2:31pm UTC](https://forum.kirupa.com/t/fading-text-bu-action-script/44687/1 "2004-03-06T14:31:12Z")

</div>

good day members

from the title above

how can i fade text by action script

i tried this code

[AS]alpha=10;  
\_root.onEnterFrame=function(){  
if (mytext.\_alpha\>100){  
mytext.\_alpha=- alpha;  
//mytext is the instance name of the MC  
}else{  
if (mytext.\_alpha\<0){  
mytext.\_alpah=-alpha;  
}  
};  
[/AS]

the code above is by me i am not sure because it is not working

any help for that
