
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
HTML Tag Support in Text Fields
|
997
<TEXTFORMAT> (Formatting Support)
The <TEXTFORMAT> tag is a special Flash-only HTML extension used to implement the
TextFormat class’s paragraph formatting features in HTML syntax. Its attributes cor-
respond to the TextFormat class’s
leftMargin, rightMargin, blockIndent, indent,
leading, and tabStops properties, as follows:
LEFTMARGIN
Sets the left margin, in pixels, of the contained text. See
TextFormat.leftMargin.
RIGHTMARGIN
Sets the right margin, in pixels, of the contained text. See
TextFormat.
rightMargin
.
BLOCKINDENT
Sets the left indentation, in pixels, of the contained text. See
TextFormat.
blockIndent
.
INDENT
Sets the indentation, in pixels, for the first line of each contained paragraph. See
TextFormat.indent.
LEADING
Sets the space, in pixels, between lines of the contained text. See
TextFormat.
leading
.
TABSTOPS
Sets the horizontal tab stops for the contained text, as a comma-separated list of
nonnegative integers. See
TextFormat.tabStops.
The following code shows how to create a text field whose lines of text are separated
vertically by 10 pixels and whose paragraphs’ first lines are indented by 20 pixels:
this.createTextField("output_txt", 1, 0, 0, 100, 200);
output_txt.html = true;
output_txt.border = true;
output_txt.wordWrap = true;
output_txt.type ...