Fading text bu action script

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