StyleManager.registerInheritingStyle()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

StyleManager.registerInheritingStyle(propertyName)

Parameters

propertyName A string indicating the name of the style property (for example, "newProp1", "newProp2", and so on).

Returns

Nothing.

Description

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.

Example

The following example registers newProp1 as an inheriting style:

StyleManager.registerInheritingStyle("newProp1");