This code creates a listener object,
item selections.
Note: You must call the
instance, not with the menu bar instance.
Select Control > Test Movie to test the MenuBar component.
7.
Customizing the MenuBar component (Flash Professional only)
This component sizes itself according to the activator labels that are supplied through the
property or the methods of the MenuBar class. When an activator button is in a
dataProvider
menu bar, it remains at a fixed size that is dependent on the font styles and the text length.
Using styles with the MenuBar component
The MenuBar component creates an activator label for each menu in a group. You can use styles
to change the look of the activator labels. A MenuBar component supports the following styles:
Style
themeColor
color
disabledColor
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textDecoration
The MenuBar component also forwards all style settings for Menu style properties to the
composed Menu instances. For a list of Menu style properties, see
component" on page
576
Chapter 6: Components Dictionary
listen
addEventListener()
Theme Description
Halo
The base color scheme of a component. Possible values are
"haloGreen"
is
"haloGreen"
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
if
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
Both
The text decoration: either
value is
548.
, that uses the event object,
method to register the listener with the menu
,
, and
"haloBlue"
.
is an embedded font. This style must be set to
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()
"none"
.
"none"
, to catch menu
evt
. The default value
"haloOrange"
true
.
false
.
"_sans"
or
. The default value
"italic"
or
. The default value
"bold"
"normal"
call, but subsequent
.
"none"
or
. The default
"underline"
"Using styles with the Menu
and
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