F > FStyleFormat.applyChanges |  |

FStyleFormat.applyChanges

FStyleFormat, FStyleFormat.applyChanges, applyChanges

Availability

Flash Player 6.

Usage

    myStyleFormat.applyChanges([propertyName1, ...propertyNameN])
    myStyleFormat.applyChanges()

Parameters

`propertyName1...propertyNameN` A series of text strings specifying the properties to update for all components assigned to `myStyleFormat`.

Returns

Nothing.

Description

Method; updates the instance of the specified style format object and applies the changes to all the components assigned to the format. You must call this method when adding or removing listeners and setting or changing properties. When updating properties, it is recommended that you use the first syntax usage to update only those properties for which you are specifying a new value.

Usage 1: Up-dates only the properties specified in the parameters.

Usage 2: Updates all of the information in the style format (that is, assigned components and properties) whether they have changed or not.

Example

Usage 1: The following example updates the `arrow` and `background` properties, but not the `check` and `highlight` properties, in `formStyleFormat`.

    formStyleFormat.arrow = 0x00ffaa;
    formStyleFormat.background = 0xaabbcc;
    formStyleFormat.check = 0x000000;
    formStyleFormat.highlight = 0xffffff;
    formStyleFormat.applyChanges("arrow", "background");

Usage 2: The following example updates all the properties in `formStyleFormat`—`arrow`, `background`, `check`, and`highlight`.

    formStyleFormat.arrow = 0x00ffaa;
    formStyleFormat.background = 0xaabbcc;
    formStyleFormat.check = 0x000000;
    formStyleFormat.highlight = 0xffffff;
    formStyleFormat.applyChanges();

See also

`FStyleFormat.addListener`, `FStyleFormat.removeListener`