Let’s say you wanted to apply a TextFormat to a TextField with the setTextFormat method and you script the following code in AS3
var t:TextField=new TextField();
var tf:TextFormat=new TextFormat();
tf.font="Verdana";
tf.size=24;
tf.bold=true;
tf.color=0xff0000;
t.width=160;
t.setTextFormat(tf);
t.text="test text";
To your surprise, the resultant text does not get the textFormat you applied. The result is
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment