all groups > flash actionscript > september 2007 >
You're in the

flash actionscript

group:

TextFormat() bold and italic problem



TextFormat() bold and italic problem capitalino
9/12/2007 4:23:15 PM
flash actionscript: Hello,

I?m trying to format a Dynamic Text field using the code below:

var oFormat:TextFormat = new TextFormat();
oFormat.color = QuestionColor;
oFormat.bold = QuestionBold;
oFormat.italic = QuestionItalic;
oFormat.size = QuestionSize;
txtQuestion.setNewTextFormat(oFormat);

The value for each variable is coming from an XML file. The code works except
for .bold and .italic, regardless of what I pass to them (either ?true? or
?false?) the text is bold and italic.

What am I doing wrong?

Thank you for your help,
Re: TextFormat() bold and italic problem kglad
9/15/2007 5:27:58 PM
Re: TextFormat() bold and italic problem capitalino
9/17/2007 7:39:02 PM
That was it!

Re: TextFormat() bold and italic problem kglad
9/17/2007 8:23:36 PM
AddThis Social Bookmark Button