MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 727

Actionscript language reference
Table of Contents

Advertisement

TextField.getFontList()
Availability
Flash Player 6.
Usage
TextField.getFontList() : Array
Parameters
None.
Returns
An array.
Description
Method; a static method of the global
as
) when you call this method. This method returns names of fonts on the player's host
my_txt
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
var font_array:Array = TextField.getFontList();
font_array.sort();
trace("You have "+font_array.length+" fonts currently installed");
trace("--------------------------------------");
for (var i = 0; i<font_array.length; i++) {
trace("Font #"+(i+1)+":\t"+font_array[i]);
}
TextField.getNewTextFormat()
Availability
Flash Player 6.
Usage
my_txt.getNewTextFormat() : TextFormat
Parameters
None.
Returns
A TextFormat object.
TextField
class. You don't specify a specific text field (such
getFontList()
:
TextField.getNewTextFormat()
727

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents