Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to make alpha change for customizable text

Status
Not open for further replies.

AlphaSunny

Technical User
Jul 13, 2004
11
CA
Here is the problem I encounter. While I am able to pass variables from the HTML code FlashVars into flash movie to customize a header name, its color and font size etc, I have problem making it animated well. I am using Flash MX 2004 Pro, and I use a Label component to carry the variables, and able to make the label move, change size, but when I try to change its alpha during tweening, nothing happens. I also try to put the label in a movie clip then apply the tweening, nothing new happens. I appreciate any suggestions that may help.

AlphaSunny
 
If you're talking about some text, the font used should be embedded, for it to work.
 
Isn't it true that the font used in Flash will be embedded by default? I didn't set the publish setting to use device font. Or do you mean something else?

Thanks for the response anyways.

AlphaSunny
 
Well, as I said I used a Label (compiled UI component provided by Flash MX 2004 Pro) to carry the customizable text header. In the script, I set headerText as a variable and asssigned it to the label instance named header (header.text = headerText;), then in the published object code, added this line:

<param name="FlashVars" value="headerText=Type your header here" />

So you see the purpose is for the end user to customize the header. As I said I was able to make the text on the lebel move and change size but unable to change its alpha.

Any suggestions on this?

Thanks,

AlphaSunny
 
I'm not on MX2004, but in MX I would edit the label component, and embed the font in the label textfield. It's not embedded by default as it is dynamic.
 
Thanks oldnewbie, but how do I embed the font? In flash mx 2004, the label component only has the following parameters found on the Component Inspector panel: autoSize (center, left, right etc), html (true or false), text (text for label, which I used it for customization, initially I put in something like Header), visible (true or false), minHeight and minWidth.
 
You have to edit the label component itself in the Library, embedding the font (hitting the Character tab in the textfield's properties), if you can manage to get at this label textfield... That's how I've done it in MX.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top