MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 904

Components language reference
Table of Contents

Advertisement

To set a style property on the Menu components only, you can create a new
CSSStyleDeclaration
import mx.styles.CSSStyleDeclaration;
if (_global.styles.Menu == undefined) {
_global.styles.Menu = new CSSStyleDeclaration();
}
_global.styles.Menu.setStyle("backgroundColor", 0xFF00AA);
When you create a new class-level style declaration, you lose all default values provided by the
declaration. This includes
ScrollSelectList
supporting mouse events. To create a class-level style declaration and preserve defaults, use a
loop to copy the old settings to the new declaration.
for..in
var source = _global.styles.ScrollSelectList;
var target = _global.styles.Menu;
for (var style in source) {
target.setStyle(style, source.getStyle(style));
}
For more information about class-level styles see "Setting styles for a component class" in
Using Components.
Using skins with the Menu component
The Menu component uses an instance of RectBorder for its border (see
on page
1063).
The Menu component has visual assets for the branch, check mark, radio dot, and separator
graphics. These assets are not dynamically skinnable, but the assets can be copied from the
Flash UI Components 2/Themes/MMDefault/Menu Assets/States folder in both themes, and
can be modified as desired. The linkage identifiers cannot be changed, and all Menu instances
must use the same symbols.
To create movie clip symbols for Menu assets:
1.
Create a new FLA file.
2.
Select File > Import > Open External Library and select the HaloTheme.fla file.
This file is located in the application-level configuration folder. For the exact location on
your operating system, see "About themes" in Using Components.
3.
In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault
folder and drag the Menu Assets folder to the library of your document.
4.
Expand the Menu Assets/States folder in the library of your document.
900
Menu component (Flash Professional only)
and store it in
_global.styles.Menu
.
, which is required for
backgroundColor
"RectBorder class"

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents