PDA

View Full Version : htmlText and masking


drummer_scum
06-06-2008, 12:05 AM
Hi guys, everyone knows that when u have dynamic text that is masked you need to embed the fonts...however i have a dynamic textField that is set to render as htmlText which is inside a movieClip which is masked. When you publish the movie via ctr + alt + enter the textField shows up but when u publish the movie with ctrl + enter the text is not displayed...i have never had this problem before...the text does not show up under the mask...all the links are there but you cant see the text heres the code....

var rsTextField:TextField;
function setUpRsText():void
{
rsTextField = new TextField();
rsTextField.embedFonts = true;
rsTextField.autoSize = TextFieldAutoSize.LEFT;
rsTextField.multiline = true;
var format:TextFormat = new TextFormat();
format.font = "Arial";
format.color = 0x000000;
format.size = 12;
rsTextField.defaultTextFormat = format;
rsTextField.x = 70;
//rsTextField.antiAliasType = flash.text.AntiAliasType.NORMAL;
rsTextField.y = -107;
addChild(rsTextField);
rsTextField.htmlText = 'there will be a series of <b><u><a href="event:challenges">challenges</a></u></b> to take part in.';

rsTextField.addEventListener(TextEvent.LINK, linkEvent);
}

setUpRsText();

lordofduct
06-06-2008, 12:26 AM
you have the text as 'bold'. Did you embed the 'bold' version of the font?

I know, it's kinda gay, but if you want bold, italics, or bold/italics, as well as regular. You need to embed all 4 different versions of the font. Which, well, can really up the size of your .fla.

drummer_scum
06-06-2008, 12:40 AM
i changed the text so that there aren't any bold tags

'there will be a series of <u><a href="event:challenges">challenges</a></u> to take part in.'

and still no go.

im only embedding Arial

Pleh
06-06-2008, 09:40 AM
There is actualy a bug in the flash player that causes this problem and I dont think I ever found a work around, the only solution for me was to add the mask programaticly but then your limited to a rectangular mask.

stompwampa
06-06-2008, 01:33 PM
I had the same issue with Bold and Italic text not showing up....I fixed it by using a different font. I'm not sure why, but I originally had the Lucida Sans font picked, but it would not show my bold or italic text...when I changed to Verdana, everything worked just great.