442
Working with Text and Strings
Text format tag
The
<textformat>
tag lets you use a subset of paragraph formatting properties of the
TextFormat class within HTML text fields, including line leading, indentation, margins, and
tab stops. You can combine
<textformat>
tags with the built-in HTML tags.
The
<textformat>
tag has the following attributes:
■
blockindent
Specifies the block indentation in points; corresponds to
TextFormat.blockIndent
. (See blockIndent (TextFormat.blockIndent property)
in the
ActionScript 2.0 Language Reference
.)
■
indent
Specifies the indentation from the left margin to the first character in the
paragraph; corresponds to
TextFormat.indent
. Lets you use negative integers. (See
indent (TextFormat.indent property) in the
ActionScript 2.0 Language Reference
.)
■
leading
Specifies the amount of leading (vertical space) between lines; corresponds to
TextFormat.leading
. Lets you use negative integers. (See leading
(TextFormat.leading property) in the
ActionScript 2.0 Language Reference
.)
■
leftmargin
Specifies the left margin of the paragraph, in points; corresponds to
TextFormat.leftMargin
. (See leftMargin (TextFormat.leftMargin property) in the
ActionScript 2.0 Language Reference
.)
■
rightmargin
Specifies the right margin of the paragraph, in points; corresponds to
TextFormat.rightMargin
. (See rightMargin (TextFormat.rightMargin property)
in the
ActionScript 2.0 Language Reference
.)
■
tabstops
Specifies custom tab stops as an array of non-negative integers; corresponds to
TextFormat.tabStops
. (See tabStops (TextFormat.tabStops property) in the
ActionScript 2.0 Language Reference
.)
The following table of data with boldfaced row headers is the result of the code example in the
procedure that follows:
Name
Age
Occupation
Rick
33
Detective
AJ
34
Detective
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...