PDA

View Full Version : Bug? Alpha issued with loaded text



Yuu
May 22nd, 2008, 06:00 PM
I've got a couple MC's that have text fields in them to catch info from external XML.

I've manually set (on the timeline) the Alpha of those MCs to only 20%, and it looks fine for any of the drawn stuff in that MC - But the dynamic text field in that same MC blasts through at 100% alpha regardless of the property assigned to it's parent.

Anyone seen this before, or know if a fix?

boen
May 23rd, 2008, 06:00 AM
on text property you have to select anti-alias for animation and embed the font.

regards,

Yuu
May 23rd, 2008, 11:25 AM
on text property you have to select anti-alias for animation and embed the font.

regards,
The text field is added by action script, since I need to change it's size each time the user changes the content. Embedding the font can be done in the AS, but I'm not sure about the Anti Alias

Would using antiAliasType like:
my_text.antiAliasType = AntiAliasType.ADVANCED;

take care of that?

Yuu
May 23rd, 2008, 01:03 PM
Got it working like I want - just in case anyone wants to know

-1st add the font you need to your library and set up it's linkage, in this case its class is _GothamLight

Then off to the AS




var gothamLight:Font = new _GothamLight();

// Formatting for the Bio Body Field
var bodyText:TextFormat = new TextFormat();
bodyText.font = gothamLight.fontName;
bodyText.color = 0xFFFFFF;
bodyText.size = 10;
bodyText.leading =4;

//// Apply the formatting to the fields
//Field Properties for text Field "body"
body.embedFonts = true;
body.defaultTextFormat = bodyText;
body.width = 340;
body.autoSize = TextFieldAutoSize.LEFT;
body.multiline
body.wordWrap = true;
body.border = false;
body.borderColor = 0xFFFFFF;
body.selectable = false;
body.antiAliasType = AntiAliasType.ADVANCED;