i’ve search for this but i’m still having a problem. i have a textfield on the stage and i want to change the font it’s displaying on rollover(i want to just have the font go bold but the font doesn’t have a bold option so i need to change it). here is what i’m calling:
public function mouseOverMenu(e:Event):void {
trace(“MOUSE OVER test:”+e.target.textTxt.text);
//TweenMax.to(e.target, 0.2, {tint:0xff0000});
var boldText:TextFormat = new TextFormat();
boldText.font="Font1";
boldText.color=0xff0000;
boldText.size = 32;
e.target.textTxt.embedFonts=true;
e.target.textTxt.text="hello";
e.target.textTxt.setTextFormat(boldText);
}
Font1 is a font i’ve embeded in the library. It’s set to export and that is the name it’s set to. If i comment out the boldText.font line the other formatting works but with it the text disapears. Any clue how to fix this issue?