Packagecom.gestureworks.cml.away3d.materials
Classpublic class TextureMaterial
InheritanceTextureMaterial Inheritance away3d.materials.TextureMaterial
Implements com.gestureworks.cml.interfaces.IObject, com.gestureworks.cml.interfaces.ICSS, com.gestureworks.cml.interfaces.IState

This class creates a color material that can be applied to a Mesh. It extends the Away3D ColorMaterial class to add CML support.



Public Properties
 PropertyDefined By
  childList : ChildList
TextureMaterial
  className : String
TextureMaterial
  cmlIndex : int
TextureMaterial
  lpref : XML
LightPicker reference
TextureMaterial
  state : Dictionary
TextureMaterial
  stateId : *
TextureMaterial
  tref : XML
TextureMaterial
Public Methods
 MethodDefined By
  
TextureMaterial(texture:Texture2DBase = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)
TextureMaterial
  
dispose():void
[override]
TextureMaterial
  
init():void
TextureMaterial
  
loadState(sId:* = null, recursion:Boolean = false):void
TextureMaterial
  
parseCML(cml:XMLList):XMLList
TextureMaterial
  
postparseCML(cml:XMLList):void
TextureMaterial
  
saveState(sId:* = null, recursion:Boolean = false):void
TextureMaterial
  
tweenState(sId:* = null, tweenTime:Number = 1):void
TextureMaterial
  
TextureMaterial
  
updateProperties(state:* = 0):void
TextureMaterial
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
lprefproperty 
lpref:XML

LightPicker reference


Implementation
    public function get lpref():XML
    public function set lpref(value:XML):void
stateproperty 
public var state:Dictionary

stateIdproperty 
stateId:*


Implementation
    public function get stateId():*
    public function set stateId(value:any):void
trefproperty 
tref:XML


Implementation
    public function get tref():XML
    public function set tref(value:XML):void
Constructor Detail
TextureMaterial()Constructor
public function TextureMaterial(texture:Texture2DBase = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)

Parameters
texture:Texture2DBase (default = null)
 
smooth:Boolean (default = true)
 
repeat:Boolean (default = false)
 
mipmap:Boolean (default = true)
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)

updateLightPicker()method 
public function updateLightPicker():void

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

Parameters

state:* (default = 0)