Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.styles 
IStyleModule 
Packagemx.styles
Interfacepublic 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
 MethodDefined By
  
Creates and sets style declarations from the styles modules into the given style manager.
IStyleModule
  
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.