Packagecom.gestureworks.cml.away3d.lights
Classpublic class DirectionalLight
InheritanceDirectionalLight Inheritance away3d.lights.DirectionalLight
Implements com.gestureworks.cml.interfaces.IObject, com.gestureworks.cml.interfaces.ICSS, com.gestureworks.cml.interfaces.IState, ILight

This class creates a directionarl light that can be applied to a Material. It extends the Away3D DirectionalLight class to add CML support.



Public Properties
 PropertyDefined By
  childList : ChildList
DirectionalLight
  className : String
DirectionalLight
  cmlIndex : int
DirectionalLight
  shadowMethod : SimpleShadowMapMethodBase
The shadow method applied to this light.
DirectionalLight
  shadowType : String
Sets the shadow type (hard or soft) if castShadow = "true".
DirectionalLight
  state : Dictionary
DirectionalLight
  stateId : *
DirectionalLight
Public Methods
 MethodDefined By
  
DirectionalLight
  
dispose():void
[override]
DirectionalLight
  
init():void
DirectionalLight
  
loadState(sId:* = null, recursion:Boolean = false):void
DirectionalLight
  
parseCML(cml:XMLList):XMLList
DirectionalLight
  
postparseCML(cml:XMLList):void
DirectionalLight
  
saveState(sId:* = null, recursion:Boolean = false):void
DirectionalLight
  
tweenState(sId:* = null, tweenTime:Number = 1):void
DirectionalLight
  
updateProperties(state:* = 0):void
DirectionalLight
Property Detail
childListproperty
childList:ChildList


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


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
shadowMethodproperty 
public var shadowMethod:SimpleShadowMapMethodBase

The shadow method applied to this light.

shadowTypeproperty 
shadowType:String

Sets the shadow type (hard or soft) if castShadow = "true".


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

stateIdproperty 
stateId:*


Implementation
    public function get stateId():*
    public function set stateId(value:any):void
Constructor Detail
DirectionalLight()Constructor
public function DirectionalLight()

Method Detail
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)