MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 777

Actionscript language reference
Table of Contents

Advertisement

Property
TextFormat.indent
TextFormat.italic
TextFormat.leading
TextFormat.leftMargin
TextFormat.rightMargin
TextFormat.size
TextFormat.tabStops
TextFormat.target
TextFormat.underline
TextFormat.url
Constructor for the TextFormat class
Availability
Flash Player 6.
Usage
new TextFormat([font:String, [size:Number, [color:Number, [bold:Boolean,
[italic:Boolean, [underline:Boolean, [url:String, [target:String,
[align:String, [leftMargin:Number, [rightMargin:Number, [indent:Number,
[leading:Number]]]]]]]]]]]]]) : TextFormat
Parameters
The name of a font for text as a string.
font
An integer that indicates the point size.
size
The color of text using this text format. A number containing three 8-bit RGB
color
components; for example, 0xFF0000 is red, and 0x00FF00 is green.
A Boolean value that indicates whether the text is boldface.
bold
A Boolean value that indicates whether the text is italicized.
italic
A Boolean value that indicates whether the text is underlined.
underline
The URL to which the text in this text format hyperlinks. If
url
does not have a hyperlink.
The target window where the hyperlink is displayed. If the target window is an empty
target
string, the text is displayed in the default target window
empty string or to the value
no effect.
The alignment of the paragraph, represented as a string. If
align
aligned. If
"center"
Description
Indicates the indentation from the left margin to the first character in
the paragraph.
Indicates whether text is italicized.
Indicates the amount of vertical space (called leading) between lines.
Indicates the left margin of the paragraph, in points.
Indicates the right margin of the paragraph, in points.
Indicates the point size of text.
Specifies custom tab stops.
Indicates the window in a browser where a hyperlink is displayed.
Indicates whether text is underlined.
Indicates the URL to which the text links.
, you can get or set this property, but the property will have
null
, the paragraph is centered. If
is an empty string, the text
url
. If the
_self
url
"left"
, the paragraph is right-aligned.
"right"
parameter is set to an
, the paragraph is left-
TextFormat class
777

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flex

Table of Contents