Package | com.gestureworks.cml.core |
Class | public class CMLParser |
Inheritance | CMLParser ![]() ![]() |
See also
Property | Defined By | ||
---|---|---|---|
![]() | classes : Array [static]
Custom classes can be registered by either pushing into this array or using the following import
syntax (note the reference to the class after the import statement):
import com.gestureworks.cml.components.MediaViewer; MediaViewer;
| CMLCore | |
cmlData : XML [static] | CMLParser | ||
cmlDisplay : Container [static] | CMLParser | ||
cmlFile : String [static] | CMLParser | ||
cssFile : String [static] | CMLParser | ||
debug : Boolean = false [static] | CMLParser | ||
![]() | fontManager : FontManager | CMLCore | |
instance : * [static] [read-only] | CMLParser | ||
![]() | packages : Array [static]
The packages that are searchable by the CML parser. | CMLCore | |
relativePaths : Boolean = false [static] | CMLParser | ||
rootDirectory : String [static] | CMLParser | ||
rootHeader : String [static] | CMLParser |
Method | Defined By | ||
---|---|---|---|
CMLParser | |||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [static] | CMLParser | ||
addToObjectList(obj:*):void [static]
Assigns cml index to object and adds object to global CMLObjectList
| CMLParser | ||
attrLoop(obj:*, cml:XMLList):void [static] | CMLParser | ||
clear():void [static] | CMLParser | ||
combinePaths(absPath:String, relPath:String):String [static] | CMLParser | ||
createObject(tag:String):Object [static]
Creates object from class name
Returns a new object of the class
| CMLParser | ||
dispatchEvent(event:Event):Boolean [static] | CMLParser | ||
hasEventListener(type:String):Boolean [static] | CMLParser | ||
init(cml:XML, parent:*, properties:* = null):void [static]
Initial parsing of the cml document
| CMLParser | ||
loopCML(cml:XMLList, parent:* = null):void [static]
Recursive CML parsing
| CMLParser | ||
parseCML(obj:*, cml:XMLList):XMLList [static]
Default parseCML routine
| CMLParser | ||
relToAbsPath(string:String):String [static]
Converts relative to absolute path
| CMLParser | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [static] | CMLParser | ||
resolveAttrs(obj:Object):void [static]
Resolves expression attributes
| CMLParser | ||
searchPackages(tag:String, packageArray:Array):Object [static]
Searches a class name from an array of packages
Returns a new object of the class
| CMLParser | ||
updateProperties(obj:*, stateKey:* = 0, stateObj:* = null):void [static]
Default updateProperties routine
| CMLParser | ||
willTrigger(type:String):Boolean [static] | CMLParser |
Constant | Defined By | ||
---|---|---|---|
COMPLETE : String = COMPLETE [static] | CMLParser |
cmlData | property |
public static var cmlData:XML
cmlDisplay | property |
public static var cmlDisplay:Container
cmlFile | property |
public static var cmlFile:String
cssFile | property |
public static var cssFile:String
debug | property |
public static var debug:Boolean = false
instance | property |
instance:*
[read-only] public static function get instance():*
relativePaths | property |
public static var relativePaths:Boolean = false
rootDirectory | property |
public static var rootDirectory:String
rootHeader | property |
public static var rootHeader:String
CMLParser | () | Constructor |
public function CMLParser()
addEventListener | () | method |
public static function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
| |
priority:int (default = 0 )
| |
useWeakReference:Boolean (default = false )
|
addToObjectList | () | method |
public static function addToObjectList(obj:*):void
Assigns cml index to object and adds object to global CMLObjectList
Parameters
obj:* |
attrLoop | () | method |
public static function attrLoop(obj:*, cml:XMLList):void
Parameters
obj:* | |
cml:XMLList |
clear | () | method |
public static function clear():void
combinePaths | () | method |
public static function combinePaths(absPath:String, relPath:String):String
Parameters
absPath:String | |
relPath:String |
String |
createObject | () | method |
public static function createObject(tag:String):Object
Creates object from class name Returns a new object of the class
Parameters
tag:String |
Object —
|
dispatchEvent | () | method |
public static function dispatchEvent(event:Event):Boolean
Parameters
event:Event |
Boolean |
hasEventListener | () | method |
public static function hasEventListener(type:String):Boolean
Parameters
type:String |
Boolean |
init | () | method |
public static function init(cml:XML, parent:*, properties:* = null):void
Initial parsing of the cml document
Parameters
cml:XML | |
parent:* | |
properties:* (default = null )
|
loopCML | () | method |
public static function loopCML(cml:XMLList, parent:* = null):void
Recursive CML parsing
Parameters
cml:XMLList | |
parent:* (default = null )
|
parseCML | () | method |
public static function parseCML(obj:*, cml:XMLList):XMLList
Default parseCML routine
Parameters
obj:* | |
cml:XMLList |
XMLList —
|
relToAbsPath | () | method |
public static function relToAbsPath(string:String):String
Converts relative to absolute path
Parameters
string:String |
String —
|
removeEventListener | () | method |
public static function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
|
resolveAttrs | () | method |
public static function resolveAttrs(obj:Object):void
Resolves expression attributes
Parameters
obj:Object |
searchPackages | () | method |
public static function searchPackages(tag:String, packageArray:Array):Object
Searches a class name from an array of packages Returns a new object of the class
Parameters
tag:String | |
packageArray:Array |
Object —
|
updateProperties | () | method |
public static function updateProperties(obj:*, stateKey:* = 0, stateObj:* = null):void
Default updateProperties routine
Parameters
obj:* | |
stateKey:* (default = 0 )
| |
stateObj:* (default = null )
|
willTrigger | () | method |
public static function willTrigger(type:String):Boolean
Parameters
type:String |
Boolean |
COMPLETE | Constant |
public static const COMPLETE:String = COMPLETE