EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 716

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
716 Chapter 12: ActionScript Dictionary
The code my_txt.setTextFormat(my_fmt) only changes the bold property of the text field’s
default text format, because the
bold property is the only one defined in my_fmt. All other aspects
of the text field’s default text format remain unchanged.
When
TextField.getTextFormat() is invoked, a TextFormat object is returned with all of its
properties defined; no property is
null.
Method summary for the TextFormat class
Property summary for the TextFormat class
Method Description
TextFormat.getTextExtent() Returns text measurement information for a text string.
Property Description
TextFormat.align Indicates the alignment of a paragraph.
TextFormat.blockIndent Indicates the block indentation, in points.
TextFormat.bold Indicates whether text is boldface.
TextFormat.bullet Indicates whether text is in a bulleted list.
TextFormat.color Indicates the color of text.
TextFormat.font Indicates the font name of the text with a text format.
TextFormat.indent Indicates the indentation from the left margin to the first character in
the paragraph.
TextFormat.italic Indicates whether text is italicized.
TextFormat.leading Indicates the amount of vertical space (called leading) between lines.
TextFormat.leftMargin Indicates the left margin of the paragraph, in points.
TextFormat.rightMargin Indicates the right margin of the paragraph, in points.
TextFormat.size Indicates the point size of text.
TextFormat.tabStops Specifies custom tab stops.
TextFormat.target Indicates the window in a browser where a hyperlink is displayed.
TextFormat.underline Indicates whether text is underlined.
TextFormat.url Indicates the URL to which the text links.

Table of Contents

Related product manuals