First time poster so bear with me…
I’m creating a textfield dynamically and populating it with xml data. I’m then applying some formating with the textFormat class using variables also defined in my xml document, kinda like so…
var c2SlashF:TextFormat = new TextFormat();
c2SlashF.font = s2txtFont;
c2SlashF.bold = s2txtBold;
c2SlashF.size = s2txtSize;
c2SlashF.italic = s2txtItalic;
c2SlashF.align = s2txtAlign;
c2SlashF.color= s2txtColor;
this.slash_txt.setTextFormat(c2SlashF);
The problem is when I run the movie, the boolean values (bold and italic) have been ignored. No matter what I define in the xml document, my text remains bolded and italicised!
Has anyone experienced anything similar? and if so, have you found a fix?