Skip to main content
Inspiring
May 11, 2006
Answered

Text alpha inheritance

This should be a pretty easy problem, but I can't seem to find the solution anywhere, probably because the search terms are too common. Anyway, why doesn't a dynamic text box inherit its transparency from its parent movie clip. For instance, if you put a dynamic text item on the stage, name it myText, then convert it to a movieclip called myClip, then set:
myClip.myText.text = "hello world"
myClip._alpha = 10
nothing happens to the alpha of the text itself. Even the setting the alpha of the text directly won't change anything, although setting its visible property works fine. Isn't there an easier way to accomplish this then messing with text formats? Is it just me, or shouldn't a text field operate just like a nested movieclip in this regard?
This topic is closed to new replies. Start a new post to keep the conversation going.
Newsgroup_UserCorrect answer
Inspiring
May 11, 2006
tonyhigham,

> why doesn't a dynamic text box inherit its transparency
> from its parent movie clip. [...] nothing happens to the
> alpha of the text itself.

Dynamic text fields' font outlines must be embedded in order to display
semi-transparent text. Select your text field and note the Embed button in
the Property inspector (was called Character in Flash MX 2004).


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."


2 replies

Inspiring
May 11, 2006
David,
Thanks a lot for your help. I thought I'd avoid messing around with embeded fonts by just using a ubiquitous font like Arial, but apparently not. Thanks again!
Translate
Newsgroup_UserCorrect answer
Inspiring
May 11, 2006
tonyhigham,

> why doesn't a dynamic text box inherit its transparency
> from its parent movie clip. [...] nothing happens to the
> alpha of the text itself.

Dynamic text fields' font outlines must be embedded in order to display
semi-transparent text. Select your text field and note the Embed button in
the Property inspector (was called Character in Flash MX 2004).


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."


Translate