MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1217

Components language reference
Table of Contents

Advertisement

Style
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textIndent
textDecoration
The TextArea and TextInput components both use 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 TextArea declaration but it affects both TextArea and
TextInput components.
_global.styles.TextArea.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.TextInput = new CSSStyleDeclaration();
_global.styles.TextInput.setStyle("disabledColor", 0xFFBBBB);
Notice how this example does not check if
overwriting it; in this example, you know it exists and you 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 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.TextInput
is an embedded font. This style
fontFamily
if
true
fontFamily
and
true
fontFamily
or
"normal"
.
or
"none"
"bold"
. All components can also accept the
in place of
"none"
getStyle()
,
"left"
.
"left"
"none"
.
"none"
Customizing the TextInput component
refers to an embedded
does not refer to an
.
"_sans"
. The default
"italic"
. The default
during a
setStyle()
return
.
"none"
, or
"right"
"center"
or
. The
"underline"
existed before
1213
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents