TextField.getFontList()

Availability

Flash Player 6.

Usage

TextField.getFontList()

Parameters

None.

Returns

An array.

Description

Method; a static method of the global TextField class. You don't specify a specific text field (such as my_txt) when you call this method. This method returns names of fonts on the player's host system as an array. (It does not return names of all fonts in currently loaded SWF files.) The names are of type string.

Example

The following code displays a font list returned by getFontList().

font_array = TextField.getFontList();
for( i in font_array){


  trace(font_array[i]);
}