MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 548

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

Advertisement

Using styles with the Menu component
You can call the
submenus.The Menu component supports the following styles:
Style
themeColor
alternatingRowColors
backgroundColor
backgroundDisabledColor
border styles
color
disabledColor
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textAlign
548
Chapter 6: Components Dictionary
method to change the style of the menu, its items, and its
setStyle()
Theme Description
Halo
Both
Both
Both
Both
Both
Both
Both
Both
Both
Both
Both
Both
The base color scheme of a component. Possible values are
,
"haloGreen"
"haloBlue"
value is
.
"haloGreen"
Specifies colors for rows in an alternating pattern. The value
can be an array of two or more colors, for example,
0xFF00FF, 0xCC6699, and 0x996699. Unlike single-
value color styles,
alternatingRowColors
color names; the values must be numeric color codes. By
default, this style is not set, and
its place for all rows.
The background color of the menu. The default color is
white and is defined on the class style declaration. This style
is ignored if
alternatingRowColors
The background color when the component's
property is set to
"false"
(medium gray).
The Menu 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
The text color.
The color for text when the component is disabled. The
default color is 0x848384 (dark gray).
A Boolean value that indicates whether the font specified in
is an embedded font. This style must be set to
fontFamily
if
refers to an embedded font. Otherwise,
true
fontFamily
the embedded font will not be used. If this style is set to
and
does not refer to an embedded font, no text
fontFamily
will be displayed. The default value is
The font name for text. The default value is
The point size for the font. The default value is 10.
The font style: either
"normal"
is
.
"normal"
The font weight: either
is
. All components can also accept the value
"none"
in place of
"normal"
"none"
subsequent calls to
getStyle()
The text alignment: either
default value is
.
"left"
, and
. The default
"haloOrange"
does not accept
backgroundColor
is specified.
. The default value is 0xDDDDDD
647.
.
"menuBorder"
.
false
"_sans"
or
. The default value
"italic"
or
. The default value
"none"
"bold"
during a
setStyle()
will return
"none"
,
, or
"left"
"right"
"center"
is used in
enabled
true
.
call, but
.
. The

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents