T > TextFormat.getTextExtent

 

TextFormat.getTextExtent

Availability

Flash Player 6.

Usage

TextFormat.getTextExtent (text)

Parameters

text A string.

Returns

An object with the properties width and height.

Description

Method; returns the size of the text string specified in the text parameter in this character format. The return value is an object of class Object with two properties, width, and height. The text is treated as plain text (not HTML). The text is a single line of text; carriage returns and line feeds are ignored, and no word wrap is applied.