Packageaway3d.materials
Classpublic class Material
InheritanceMaterial Inheritance flash.events.EventDispatcher
Subclasses WireframeMaterial

Base class for all materials



Public Properties
 PropertyDefined By
  id : int
[read-only] Unique identifier
Material
  visible : Boolean
[read-only] Indicates whether the material is visible
Material
Public Methods
 MethodDefined By
  
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Material
  
clone(material:Material = null):Material
Duplicates the material properties to another material object.
Material
  
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Material
Events
 Event Summary Defined By
  Dispatched when the any visual aspect of the material changes.Material
Property Detail
idproperty
id:int  [read-only]

Unique identifier


Implementation
    public function get id():int
visibleproperty 
visible:Boolean  [read-only]

Indicates whether the material is visible


Implementation
    public function get visible():Boolean
Method Detail
addOnMaterialUpdate()method
public function addOnMaterialUpdate(listener:Function):void

Default method for adding a materialupdated event listener

Parameters

listener:Function — The listener function

clone()method 
public function clone(material:Material = null):Material

Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as Material;

Parameters

material:Material (default = null) — [optional] The new material instance into which all properties are copied. The default is Material.

Returns
Material — The new material instance with duplicated properties applied.
removeOnMaterialUpdate()method 
public function removeOnMaterialUpdate(listener:Function):void

Default method for removing a materialupdated event listener

Parameters

listener:Function — The listener function

Event Detail
materialUpdated Event
Event Object Type: away3d.events.MaterialEvent
MaterialEvent.type property = away3d.events.MaterialEvent

Dispatched when the any visual aspect of the material changes.