F > Property summary for the FStyleFormat object |
![]() ![]() ![]() |
Property summary for the FStyleFormat object
The following tables lists the property summaries for the FStyleFormat object.
Property |
Description |
---|---|
The color of the arrow used in scroll bars and drop-down lists. |
|
The color of the background portion of a component. |
|
The color of the background portion of a disabled component. |
|
The color of the check mark in a selected check box. |
|
The color of the inner border or darker shadow portion of a component. |
|
The main color of the component. |
|
The foreground color of a disabled component. |
|
The color for the inner border or darker shadow portion of a component when it is selected. |
|
The color for the outer border or light shadow portion of a component when it is selected. |
|
The color of the dot in a selected radio button. |
|
The color of the track in a scroll bar. |
|
The color of the selection bar highlighting a list item in a component. |
|
The color of the selection bar that highlights a list item in a disabled component. |
|
The color of the selection bar when the component does not have key board focus. |
|
The color of the outer border or light shadow portion of a component. |
|
The alignment (left, right, or center) for text displayed in or on a component. |
|
Specifies whether text is bold ( |
|
The default text color in all components assigned to the style format. |
|
The color of the text in a disabled component. |
|
The name of the font to display text. |
|
The indentation of the text from the left margin to the first text character, in pixels. |
|
Specifies whether text is italic ( |
|
The left paragraph margin for text, in pixels. |
|
The right paragraph margin for text, in pixels. |
|
The color of a selected list item in a component. |
|
The size of the text, in points. |
|
Specifies whether text is underlined ( |
Constructor for the FStyleFormat object
Availability
Flash Player 6.
Usage
new FStyleFormat()
Parameters
None.
Returns
An instance of the FStyleFormat object.
Description
Method; creates a new FStyleFormat object. You create new FStyleFormat objects to define text and color properties for custom style formats used with custom components or with the Flash UI components. All Flash UI components are assigned by default to globalStyleFormat
, which is an instance of the FStyleFormat object. You do not need to create a new instance of the FStyleFormat object to change properties in the global style format, because it already exists. You can also use setStyleProperty
to change properties for specific component instances without using a constructor.
For more information, see the setStyleProperty
method available to each componentFCheckBox.setStyleProperty
, FComboBox.setStyleProperty
, and so on. See also the Customizing component colors and text of the Using Components chapter of Using Flash.
Example
The following example creates the new style format formStyleFormat
.
formStyleFormat
=
new StyleFormat();
![]() ![]() ![]() |