User Guide

Customizing the Menu component (Flash Professional only) 899
Setting styles for all Menu components in a document
The Menu class inherits from the ScrollSelectList class. The default class-level style properties
are defined on the ScrollSelectList class, which is shared by all List-based components. You
can set new default style values on this class directly, and the new settings are reflected in all
affected components.
_global.styles.ScrollSelectList.setStyle("backgroundColor", 0xFF00AA);
selectionColor
Both The background color of a selected row. The default
value is a 0xCDFFC1 (light green) with the Halo
theme and 0xEEEEEE (very light gray) with the
Sample theme.
When
themeColor is changed through a setStyle()
call, the framework sets
selectionColor to a value
related to the
themeColor chosen.
selectionDuration
Both The length of the transition from a normal to selected
state, in milliseconds. The default value is 200.
selectionEasing
Both A reference to the easing equation used to control the
transition between selection states. The default
equation uses a sine in/out formula. For more
information, see “Customizing component
animations” in Using Components.
textRollOverColor
Both The color of text when the pointer rolls over. The
default value is 0x2B333C (dark gray). This style is
important when you set
rollOverColor, because the
two settings must complement each other so that text
is easily viewable during rollover.
textSelectedColor
Both The color of text in the selected row. The default value
is 0x005F33 (dark gray). This style is important
when you set
selectionColor, because the two must
complement each other so that text is easily viewable
while selected.
useRollOver
Both Determines whether rolling over a row activates
highlighting. The default value is true.
Style n Description