Style
border styles
color
disabledColor
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
The Alert component includes three different categories of text. Setting the text properties for the
Alert component itself provides default values for all three categories, as shown here:
import mx.controls.Alert;
_global.styles.Alert.setStyle("color", 0x000099);
Alert.show("This is a test alert", "Title");
To set the text styles for one category individually, the Alert component provides static properties
that are references to a CSSStyleDeclaration instance.
Static property
buttonStyleDeclaration
messageStyleDeclaration
titleStyleDeclaration
Theme Description
Both
The Alert component uses a RectBorder instance as its
border and responds to the styles defined on that class. See
"RectBorder class" on page
The Alert component has a component-specific
setting of "
alert
Sample theme.
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
is an embedded font. This style must be set to
fontFamily
if
true
fontFamily
embedded font will not be used. If this style is set to
does not refer to an embedded font, no text will be
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
. All components can also accept the value
"none"
in place of
"none"
calls to
getStyle()
Both
The text alignment: either
default value is
Both
The text decoration: either
value is
"none"
Both
A number indicating the text indent. The default value is 0.
Text affected
Button
Message
Title
647.
" with the Halo theme and "
refers to an embedded font. Otherwise, the
.
false
or
"normal"
"italic"
or
"none"
"bold"
during a
setStyle()
will return
.
"none"
,
"left"
"right"
.
"left"
or
"none"
"underline"
.
Alert component (Flash Professional only)
borderStyle
" with the
outset
and
true
.
"_sans"
. The default value
. The default value
"normal"
call, but subsequent
, or
. The
"center"
. The default
117
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?