Stylemanager.registerinheritingstyle() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

StyleManager.registerInheritingStyle()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
StyleManager.registerInheritingStyle(propertyName)
Parameters
A string indicating the name of the style property (for example,
propertyName
,
, and so on).
"newProp1"
"newProp2"
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
as an inheriting style:
newProp1
StyleManager.registerInheritingStyle("newProp1");
1174
StyleManager class

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents