MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 688

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents