Packagecom.gestureworks.cml.loaders
Classpublic class CMLLoader
InheritanceCMLLoader Inheritance flash.events.EventDispatcher

The CMLLoader class loads and stores a global reference to an external XML file.

See also

com.gestureworks.core.CMLLoader


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

dataproperty 
data:XML  [read-only]

Contains the loaded data


Implementation
    public function get data():XML
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
CMLLoader()Constructor
public function CMLLoader(enforcer:SingletonEnforcer)

Constructor

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

returns the XML loader key value

Parameters

key:*

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

Loads an external XML file

Parameters

url:String

loadXML()method 
public function loadXML(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.