ActionScript 2.0 Components Language Reference |
|
|
|
| StyleManager class > StyleManager.registerColorName() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
StyleManager.registerColorName(colorName,value)
colorName A string indicating the name of the color (for example, "gray", "darkGrey", and so on).
value A hexadecimal number indicating the color (for example, 0x808080, 0x404040, and so on).
Nothing.
Method; associates a color name with a hexadecimal value and registers it with the Style Manager.
The following example registers "gray" as the color name for the color represented by the hexadecimal value 0x808080:
StyleManager.registerColorName("gray", 0x808080);
|
|
|
|