F > FStyleFormat.addListener |  |

FStyleFormat.addListener

FStyleFormat, FStyleFormat.addListener, addListener

Availability

Flash Player 6.

Usage

    myStyleFormat.addListener(component1 [, component2, ...componentN])

Parameters

`component1 ... componentN` The component instances to register to `myStyleFormat`.

Returns

Nothing.

Description

Method; registers the specified components to `myStyleFormat`. Use this method to register instances of Flash UI components or custom components to a custom style format. You can also use this method with the following syntax to register a custom component to the global style format used by all Flash UI components by default:

    globalStyleFormat.addListener(customComponent);

Example

The following code registers `formStyleFormat` with the components `myListBox`, `myComboBox`, and `myScrollBar.`

    formStyleFormat.addListener(myListBox, myComboBox, myScrollBar);

See also

`FStyleFormat.applyChanges`, `FStyleFormat.removeListener`