# Text fade in problem

**URL:** <https://forum.kirupa.com/t/text-fade-in-problem/286899>\
**Category:** Uncategorized\
**Created:** [April 22, 2009, 3:16pm UTC](https://forum.kirupa.com/t/text-fade-in-problem/286899 "2009-04-22T15:16:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dipset0181](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dipset0181](https://forum.kirupa.com/u/dipset0181)\
**Post date:** [April 22, 2009, 3:16pm UTC](https://forum.kirupa.com/t/text-fade-in-problem/286899/1 "2009-04-22T15:16:26Z")

</div>

hi,

I,m trying to make a dynamic text field fade in. I got the fade in part though.  
the dynamic text field contains a percentage loader. just before it fades in it shows a zero.

this is my actionscript code it is as2

this.percentage.pct\_txt.embedFonts;  
var alpha = 0;  
function onEnterFrame(){  
this.percentage.pct\_txt.\_visible = 0;{  
if ( alpha \< 100 )  
{  
alpha +=5;  
\_root.percentage.pct\_txt.\_alpha = alpha;  
trace(\_root.percentage.pct\_txt.\_alpha);  
}  
else  
{  
delete this.onEnterFrame; // done, we remove this function  
}  
}  
}  
stop();
