Packagecom.gestureworks.cml.loaders
Classpublic class CSSLoader
InheritanceCSSLoader Inheritance flash.events.EventDispatcher

The CSSManager class loads and stores a global reference to an external CSS file.

See also

com.gestureworks.managers.CSSManager


Public Properties
 PropertyDefined By
  _data : StyleSheet
CSSLoader
  data : StyleSheet
[read-only] Contains the loaded data
CSSLoader
  isLoaded : Boolean
[read-only] Returns true if the file is loaded
CSSLoader
  loader : URLLoader
[read-only] Contains the loader
CSSLoader
  percentLoaded : Number
[read-only] Returns the percentage loaded value
CSSLoader
  src : String
Sets the file source path
CSSLoader
Public Methods
 MethodDefined By
  
CSSLoader(enforcer:SingletonEnforcer)
Constructor
CSSLoader
  
[static] Returns an instance of the CMLLoader class
CSSLoader
  
load(url:String):void
Loads an external XML file
CSSLoader
  
loadStyle(url:String):void
Deprecated: Please Use load
CSSLoader
Public Constants
 ConstantDefined By
  COMPLETE : String = COMPLETE
[static] The COMPLETE string is dispatched when the file has loaded.
CSSLoader
Property Detail
_dataproperty
public var _data:StyleSheet

dataproperty 
data:StyleSheet  [read-only]

Contains the loaded data


Implementation
    public function get data():StyleSheet
isLoadedproperty 
isLoaded:Boolean  [read-only]

Returns true if the file is loaded


Implementation
    public function get isLoaded():Boolean
loaderproperty 
loader:URLLoader  [read-only]

Contains the loader


Implementation
    public function get loader():URLLoader
percentLoadedproperty 
percentLoaded:Number  [read-only]

Returns the percentage loaded value


Implementation
    public function get percentLoaded():Number
srcproperty 
src:String

Sets the file source path


Implementation
    public function get src():String
    public function set src(value:String):void
Constructor Detail
CSSLoader()Constructor
public function CSSLoader(enforcer:SingletonEnforcer)

Constructor

Parameters
enforcer:SingletonEnforcer
Method Detail
getInstance()method
public static function getInstance(key:*):CSSLoader

Returns an instance of the CMLLoader class

Parameters

key:*

Returns
CSSLoader
load()method 
public function load(url:String):void

Loads an external XML file

Parameters

url:String

loadStyle()method 
public function loadStyle(url:String):void
Deprecated: Please Use load

Parameters

url:String

Constant Detail
COMPLETEConstant
public static const COMPLETE:String = COMPLETE

The COMPLETE string is dispatched when the file has loaded.