Example
The following code displays a font list returned by
font_array = TextField.getFontList();
for( i in font_array){
trace(font_array[i]);
}
TextField.getNewTextFormat()
Availability
Flash Player 6.
Usage
my_txt.getNewTextFormat()
Parameters
None.
Returns
A TextFormat object.
Description
Method; returns a TextFormat object containing a copy of the text field's text format object. The
text format object is the format that newly inserted text, such as text inserted with the
method or text entered by a user, receives. When
replaceSel()
invoked, the TextFormat object returned has all of its properties defined. No property is
TextField.getTextFormat()
Availability
Flash Player 6.
Usage
my_txt.getTextFormat()
my_txt.getTextFormat(index)
my_txt.getTextFormat(beginIndex, endIndex)
Parameters
An integer that specifies a character in a string.
index
beginIndex, endIndex
within
.
my_txt
Returns
An object.
688
Chapter 12: ActionScript Dictionary
Integers that specify the starting and ending locations of a span of text
.
getFontList()
getNewTextFormat()
is
.
null
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers