Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > TextFormat > size (TextFormat.size property) | |||
public size : Number
The point size of text in this text format. The default value is null, which indicates that the property is undefined.
Note: For Arabic, Hebrew, and Thai, this property works for paragraph-level formatting only.
Availability: ActionScript 1.0; Flash Lite 2.0
The following example creates a text field and sets the text size to 20 points.
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.size = 20;
mytext.text = "This is my first text field object text";
mytext.setTextFormat(myformat);