Packagecom.gestureworks.cml.away3d.textures
Classpublic class BitmapTexture
InheritanceBitmapTexture Inheritance away3d.textures.BitmapTexture
Implements com.gestureworks.cml.interfaces.IObject, com.gestureworks.cml.interfaces.ICSS, com.gestureworks.cml.interfaces.IState, ITexture

This class creates a bitmap texture that can be applied to a Material. It extends the Away3D BitmapTexture class to add CML support.



Public Properties
 PropertyDefined By
  childList : ChildList
BitmapTexture
  className : String
BitmapTexture
  cmlIndex : int
BitmapTexture
  src : String
Sets file source
BitmapTexture
  state : Dictionary
BitmapTexture
  stateId : *
BitmapTexture
Public Methods
 MethodDefined By
  
BitmapTexture(bitmapData:BitmapData = null, generateMipmaps:Boolean = true)
BitmapTexture
  
dispose():void
[override]
BitmapTexture
  
init():void
BitmapTexture
  
loadState(sId:* = null, recursion:Boolean = false):void
BitmapTexture
  
parseCML(cml:XMLList):XMLList
BitmapTexture
  
postparseCML(cml:XMLList):void
BitmapTexture
  
saveState(sId:* = null, recursion:Boolean = false):void
BitmapTexture
  
tweenState(sId:* = null, tweenTime:Number = 1):void
BitmapTexture
  
updateProperties(state:* = 0):void
BitmapTexture
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
srcproperty 
src:String

Sets file source


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
Constructor Detail
BitmapTexture()Constructor
public function BitmapTexture(bitmapData:BitmapData = null, generateMipmaps:Boolean = true)

Parameters
bitmapData:BitmapData (default = null)
 
generateMipmaps: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)

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

Parameters

state:* (default = 0)