| Package | com.gestureworks.cml.loaders |
| Class | public class CMLLoader |
| Inheritance | CMLLoader flash.events.EventDispatcher |
See also
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
CMLLoader(enforcer:SingletonEnforcer)
Constructor
| CMLLoader | ||
getInstance(key:*):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 | ||
| Constant | Defined By | ||
|---|---|---|---|
| COMPLETE : String = COMPLETE [static]
The COMPLETE string is dispatched when the file has loaded. | CMLLoader | ||
| _data | property |
public var _data:XML| data | property |
data:XML [read-only] Contains the loaded data
public function get data():XML| isLoaded | property |
isLoaded:Boolean [read-only] Returns true if the file is loaded
public function get isLoaded():Boolean| loader | property |
loader:URLLoader [read-only] Contains the loader
public function get loader():URLLoader| percentLoaded | property |
percentLoaded:Number [read-only] Returns the percentage loaded value
public function get percentLoaded():Number| src | property |
src:StringSets the file source path
public function get src():String public function set src(value:String):void| CMLLoader | () | Constructor |
public function CMLLoader(enforcer:SingletonEnforcer)Constructor
Parametersenforcer:SingletonEnforcer |
| getInstance | () | method |
public static function getInstance(key:*):CMLLoaderreturns the XML loader key value
Parameters
key:* |
CMLLoader — |
| load | () | method |
public function load(url:String):voidLoads an external XML file
Parameters
url:String |
| loadXML | () | method |
| COMPLETE | Constant |
public static const COMPLETE:String = COMPLETEThe COMPLETE string is dispatched when the file has loaded.