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.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...