MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 727

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Using styles with the TextArea component
The TextArea component supports one set of component styles for all text in the field. However,
you can also display HTML that is compatible with Flash Player HTML rendering. To display
HTML text, set
TextArea.html
The TextArea component has its
a class style declaration. Class styles override global styles; therefore, if you want to set the
backgroundColor
declaration on the instance.
If the name of a style property ends in "Color", it is a color style property and behaves differently
than noncolor style properties. For more information, see
color and text" on page
A TextArea component supports the following styles:
Style
backgroundColor
border styles
marginLeft
marginRight
color
disabledColor
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
to
true
backgroundColor
and
style properties, you must create a different custom style
borderStyle
67.
Theme Description
Both
The background color. The default color is white.
Both
The TextArea component uses a RectBorder instance as its
border and responds to the styles defined on that class. See
"RectBorder class" on page
The default border style is
Both
A number indicating the left margin for text. The default value
is 0.
Both
A number indicating the right margin for text. The default value
is 0.
Both
The text color. The default value is 0x0B333C for the Halo
theme and blank for the Sample theme.
Both
The color for text when the component is disabled. The default
color is 0x848384 (dark gray).
Both
A Boolean value that indicates whether the font specified in
fontFamily
true
embedded font will not be used. If this style is set to
fontFamily
displayed. The default value is
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
is
"normal"
Both
The font weight: either
is
"none"
in place of
calls to
.
and
borderStyle
"Using styles to customize component
"inset"
is an embedded font. This style must be set to
if
refers to an embedded font. Otherwise, the
fontFamily
does not refer to an embedded font, no text will be
"normal"
.
"none"
. All components can also accept the value
during a
"none"
setStyle()
will return
getStyle()
style properties defined on
647.
.
.
false
.
"_sans"
or
. The default value
"italic"
or
. The default value
"bold"
call, but subsequent
.
"none"
TextArea component
and
true
"normal"
727

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents