StyleManager class
ActionScript Class Name
The StyleManager class keeps track of known inheriting styles and colors. You only need to use
this class if you are creating components and want to add a new inheriting style or color.
To determine which styles are inheriting, see the W3C web site at www.w3.org/Style/CSS/.
Method summary for the StyleManager class
The following table lists methods of the StyleManager class.
Method
StyleManager.registerColorName()
StyleManager.registerColorStyle()
StyleManager.registerInheritingStyle()
StyleManager.registerColorName()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
StyleManager.registerColorName(colorName, value)
Parameters
A string indicating the name of the color (for example,
colorName
so on).
A hexadecimal number indicating the color (for example, 0x808080, 0x404040, and
value
so on).
Returns
Nothing.
Description
Method; associates a color name with a hexadecimal value and registers it with the Style Manager.
Example
The following example registers
hexadecimal value 0x808080:
StyleManager.registerColorName("gray", 0x808080);
mx.styles.StyleManager
Description
Registers a new color name with the Style Manager.
Adds a new color style to the Style Manager.
Registers a new inheriting style with the Style Manager.
as the color name for the color represented by the
"gray"
CHAPTER 6
Components Dictionary
,
"gray"
"darkGrey"
StyleManager class
, and
721
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?