ActionScript 2.0 Components Language Reference |
|
|
|
| StyleManager class > StyleManager.registerInheritingStyle() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
StyleManager.registerInheritingStyle(propertyName)
propertyName A string indicating the name of the style property (for example, "newProp1", "newProp2", and so on).
Nothing.
Method; marks this style property as inheriting. Use this method to register style properties that aren't listed in the CSS specification. Do not use this method to change non-inheriting style properties to inheriting.
When a style's value is not inherited, you can set its style only on an instance, not on a custom or global style sheet. A style that doesn't inherit its value is set on the class style sheet, and therefore, setting it on a custom or global style sheet does not work.
The following example registers newProp1 as an inheriting style:
StyleManager.registerInheritingStyle("newProp1");
|
|
|
|