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.

Availability: ActionScript 1.0; Flash Player 6

Example

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);

Flash CS3