PDA

View Full Version : any way to change alpha of dynamic text?


infernosnow
05-01-2008, 01:03 PM
or is there some way to create a static text field? I know you can create static text fields manually, but from what I see, you can only create input and dynamic text fields through actionscript. This makes it impossible to do any kind of fade in or fade out effects with text created through AS. I remember I ran into this problem a few years ago with AS 2.0 and got around it by placing a movie clip over top of the text and faded it from 0 to 1 to give the illusion that the text was fading out, but I can't do that this time as my background isn't plain black and frankly I'd rather not do that trick because it's idiotic that I should have to fade text out that way in the first place. Is there another more simple work around that I'm not seeing here?

xwielder
05-01-2008, 01:12 PM
I know you can create static text fields manually, but from what I see, you can only create input and dynamic text fields through actionscript.

That's not true. You can use your Flash Text tool and make Static, Dynamic, and Input text fields. You can set the alpha manually or thru code too.

Show us what you've coded so far please.

(Actionscript Master???)

amarghosh
05-01-2008, 01:14 PM
if changing alpha of textfield doesn't work --- may be u have to embed fonts --- draw the TextField onto bitmapdata and play with it's alpha;

infernosnow
05-01-2008, 01:20 PM
xwielder: You are incorrect. When I said manually, I was referring to text created with the text tool. But I'm trying to do everything through code and you can only create dynamic and input text fields through code.

Amarghosh: Yep, I just found that out through google. Should have searched for it there first I guess. I'm still trying to figure out why you have to embed the fonts in the first place though. It doesn't quite make sense to me.

xwielder
05-01-2008, 01:24 PM
xwielder: You are incorrect. When I said manually, I was referring to text created with the text tool. But I'm trying to do everything through code and you can only create dynamic and input text fields through code.

Ah, I misunderstood what you meant.