mx.styles

# IStyleModule - AS3 Flex

Package | mx.styles
Interface | public interface IStyleModule

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Simple interface to manipulate style modules. You can cast an object to an IStyleModule type so that there is no dependency on the StyleModule type in the loading application.

Public Methods

| Method | Defined By
--- | --- | ---
|  | setStyleDeclarations(styleManager:IStyleManager2):void Creates and sets style declarations from the styles modules into the given style manager. | IStyleModule
|  | unload():void Unloads the style module. | IStyleModule

Method Detail

### setStyleDeclarations

()
method

`public function setStyleDeclarations(styleManager:IStyleManager2):void`

Language Version: | ActionScript 3.0

Product Version: | Flex 4

Runtime Versions: | Flash Player 9, AIR 1.1

Creates and sets style declarations from the styles modules into the given style manager. This should be called after the style modules is created.

Parameters

| `styleManager:IStyleManager2` — The style manager where the style declarations will be loaded into. The style declarations will be created relative to the this style manager. The unload() function will unload styles from this style manager. If null is passed the top-level style manager is used.

### unload

()
method

`public function unload():void`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Unloads the style module.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00