F > FStyleFormat.removeListener

 

FStyleFormat.removeListener

Availability

Flash Player 6.

Usage

myStyleFormat.removeListener(component)

Parameters

component The component to remove from the style format.

Description

Method; removes a component assigned to the style format.

If you remove a Flash UI component as a listener from the global style format and do not assign it (add it as a listener) to a custom style format, the skin element movie clips are displayed as they were originally authored by the component designer without a property value assigned.

If you remove a Flash UI component as a listener from a custom style format, the component no longer uses the property values in the custom style format and instead uses the values specified for those properties in the global style format object.

If you remove a custom component as a listener from a custom style format without adding it to a new custom style format, the component uses the values set for the properties in the global style format where possible, and otherwise displays the skin elements without a property value.

Example

The following example removes the component check1 from globalStyleFormat.

globalStyleFormat.removeListener(check1); 

See also

FStyleFormat.addListener, FStyleFormat.applyChanges