MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1185

Components language reference
Table of Contents

Advertisement

Style
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textIndent
textDecoration
The TextArea and TextInput components use exactly the same styles and are often used in the
same manner. Thus, by default they share the same class-level style declaration.
For example, the following code sets a style on the TextInput declaration, but it affects both
TextInput and TextArea components.
_global.styles.TextInput.setStyle("disabledColor", 0xBBBBFF);
To separate the components and provide class-level styles for one and not the other, create a
new style declaration.
import mx.styles.CSSStyleDeclaration;
_global.styles.TextArea = new CSSStyleDeclaration();
_global.styles.TextArea.setStyle("disabledColor", 0xFFBBBB);
This example does not check if
assumes you know it exists and want to overwrite it.
Theme Description
Both
A Boolean value that indicates whether the font
specified in
must be set to
font. Otherwise, the embedded font is not used. If this
style is set to
embedded font, no text is displayed. The default value
is
.
false
Both
The font name for text. The default value is
Both
The point size for the font. The default value is 10.
Both
The font style: either
value is
"normal"
Both
The font weight: either
value is
"none"
value
"normal"
call, but subsequent calls to
Both
The text alignment: either
. (The
"justify"
in Flash Player 8). The default value is
Both
A number indicating the text indent. The default value is
0.
Both
The text decoration: either
default value is
_global.styles.TextArea
is an embedded font. This style
fontFamily
if
refers to an embedded
true
fontFamily
and
true
fontFamily
or
"normal"
.
or
"none"
"bold"
. All components can also accept the
in place of
"none"
getStyle()
,
"left"
parameter is supported only
"justify"
"none"
.
"none"
existed before overwriting it; it
Customizing the TextArea component
does not refer to an
.
"_sans"
. The default
"italic"
. The default
during a
setStyle()
return
.
"none"
,
, or
"right"
"center"
.
"left"
or
. The
"underline"
1181

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents