Understanding style settings

Here are a few key points about using styles:

Inheritance A component child is set to inherit a style from the parent component by design. You cannot set inheritance for styles within ActionScript.

Precedence If a component style is set in more than one way, Flash uses the first style it encounters according to its order of precedence. Flash looks for styles in the following order until a value is found:

  1. Flash looks for a style property on the component instance.
  2. If the style is one of the inheriting styles, Flash looks through the parent hierarchy for an inherited value.
  3. Flash looks for the style on the component.
  4. Flash looks for a global setting on StyleManager.
  5. If the property is still not defined, the property has the value undefined.