Packagecom.gestureworks.cml.away3d.elements
Classpublic class Model
InheritanceModel Inheritance away3d.containers.ObjectContainer3D
Implements com.gestureworks.cml.interfaces.IObject, com.gestureworks.cml.interfaces.ICSS, com.gestureworks.cml.interfaces.IState

This class loads a 3D Model file.



Public Properties
 PropertyDefined By
  childList : ChildList
Model
  className : String
sets the class name of displayobject
Model
  cmlIndex : int
Model
  debug : Boolean
Sets debug status.
Model
  lightPicker : *
Sets the light picker.
Model
  lpref : XML
Sets the light picker reference.
Model
  src : String
Sets the model file path.
Model
  state : Dictionary
Model
  stateId : *
Model
  touchEnabled : Boolean
Sets whether touch events are processed on this object.
Model
  vto : TouchContainer3D
Virtual transform object.
Model
Public Methods
 MethodDefined By
  
Model
  
Model
  
dispose():void
[override]
Model
  
init():void
Model
  
loadState(sId:* = null, recursion:Boolean = false):void
Model
  
parseCML(cml:XMLList):XMLList
Model
  
postparseCML(cml:XMLList):void
Model
  
saveState(sId:* = null, recursion:Boolean = false):void
Model
  
tweenState(sId:* = null, tweenTime:Number = 1):void
Model
  
updateProperties(state:* = 0):void
Model
Property Detail
childListproperty
childList:ChildList


Implementation
    public function get childList():ChildList
    public function set childList(value:ChildList):void
classNameproperty 
className:String

sets the class name of displayobject


Implementation
    public function get className():String
    public function set className(value:String):void
cmlIndexproperty 
cmlIndex:int


Implementation
    public function get cmlIndex():int
    public function set cmlIndex(value:int):void
debugproperty 
debug:Boolean

Sets debug status.


Implementation
    public function get debug():Boolean
    public function set debug(value:Boolean):void
lightPickerproperty 
lightPicker:*

Sets the light picker.


Implementation
    public function get lightPicker():*
    public function set lightPicker(value:any):void
lprefproperty 
lpref:XML

Sets the light picker reference.


Implementation
    public function get lpref():XML
    public function set lpref(value:XML):void
srcproperty 
src:String

Sets the model file path.


Implementation
    public function get src():String
    public function set src(value:String):void
stateproperty 
public var state:Dictionary

stateIdproperty 
stateId:*


Implementation
    public function get stateId():*
    public function set stateId(value:any):void
touchEnabledproperty 
touchEnabled:Boolean

Sets whether touch events are processed on this object. Same as mouseEnabled.


Implementation
    public function get touchEnabled():Boolean
    public function set touchEnabled(value:Boolean):void
vtoproperty 
public var vto:TouchContainer3D

Virtual transform object.

Constructor Detail
Model()Constructor
public function Model()

Method Detail
addAllChildren()method
public function addAllChildren():void

dispose()method 
override public function dispose():void

init()method 
public function init():void

loadState()method 
public function loadState(sId:* = null, recursion:Boolean = false):void

Parameters

sId:* (default = null)
 
recursion:Boolean (default = false)

parseCML()method 
public function parseCML(cml:XMLList):XMLList

Parameters

cml:XMLList

Returns
XMLList
postparseCML()method 
public function postparseCML(cml:XMLList):void

Parameters

cml:XMLList

saveState()method 
public function saveState(sId:* = null, recursion:Boolean = false):void

Parameters

sId:* (default = null)
 
recursion:Boolean (default = false)

tweenState()method 
public function tweenState(sId:* = null, tweenTime:Number = 1):void

Parameters

sId:* (default = null)
 
tweenTime:Number (default = 1)

updateProperties()method 
public function updateProperties(state:* = 0):void

Parameters

state:* (default = 0)