Supported styles

Flash MX 2004 and Flash MX Professional 2004 come with two themes: Halo (HaloTheme.fla) and Sample (SampleTheme.fla). Each theme supports a different set of styles. The Sample theme uses all the styles of the v2 styles mechanism and is provided so that you can see a sample of those styles in a document. The Halo theme supports a subset of the Sample theme styles.

The following style properties are supported by most v2 components in the Sample style. For information about which Halo styles are supported by individual components, see Components Dictionary.

If any values other than allowed values are entered, the default value is used. This is important if you are re-using CSS style declarations that use values outside the Macromedia subset of values.

Components can support the following styles:

Style

Description

backgroundColor

The background of a component. This is the only color style that doesn't inherit its value. The default value is transparent.

borderColor

The black section of a three-dimensional border or the color section of a two-dimensional border. The default value is 0x000000 (black).

borderStyle

The component border: either "none", "inset", "outset", or "solid". This style does not inherit its value. The default value is "solid".

buttonColor

The face of a button and a section of the three-dimensional border. The default value is 0xEFEEEF (light gray).

color

The text of a component label. The default value is 0x000000 (black).

disabledColor

The disabled color for text. The default color is 0x848384 (dark gray).

fontFamily

The font name for text. The default value is _sans.

fontSize

The point size for the font. The default value is 10.

fontStyle

The font style: either "normal" or "italic". The default value is "normal".

fontWeight

The font weight: either "normal" or "bold". The default value is "normal".

highlightColor

A section of the three-dimensional border. The default value is 0xFFFFFF (white).

marginLeft

A number indicating the left margin for text. The default value is 0.

marginRight

A number indicating the right margin for text. The default value is 0.

scrollTrackColor

The scroll track for a scroll bar. The default value is 0xEFEEEF (light gray).

shadowColor

A section of the three-dimensional border. The default value is 0x848384 (dark gray).

symbolBackgroundColor

The background color of check boxes and radio buttons. The default value is 0xFFFFFF (white).

symbolBackgroundDisabledColor

The background color of check boxes and radio buttons when disabled. The default value is 0xEFEEEF (light gray).

symbolBackgroundPressedColor

The background color of check boxes and radio buttons when pressed. The default value is 0xFFFFFF (white).

symbolColor

The check mark of a check box or the dot of a radio button. The default value is 0x000000 (black).

symbolDisabledColor

The disabled check mark or radio button dot color. The default value is 0x848384 (dark gray).

textAlign

The text alignment: either "left", "right", or "center". The default value is "left".

textDecoration

The text decoration: either "none" or "underline". The default value is "none".

textIndent

A number indicating the text indent. The default value is 0.