Packageaway3d.materials
Classpublic class Material
InheritanceMaterial Inheritance flash.events.EventDispatcher
SubclassesWireframeMaterial

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
  
Material
  
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
 EventSummaryDefined 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
_materialDataproperty 
arcane var _materialData:MaterialData
visibleproperty 
visible:Boolean  [read-only]

Indicates whether the material is visible

Implementation
    public function get visible():Boolean
Constructor detail
Material()constructor
public function Material() Init Parameters
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
materialUpdatedevent 
Event object type: away3d.events.MaterialEvent

Dispatched when the any visual aspect of the material changes.

Wiki link
Click to go to the wiki page for 'away3d.materials.Material'

Code examples

Comments