Packageaway3d.primitives.data
Classpublic class CubeMaterialsData
InheritanceCubeMaterialsData Inheritance flash.events.EventDispatcher

Data structure for individual materials on the sides of a cube.

See also

away3d.primitives.Cube
away3d.primitives.Skybox


Public Properties
 PropertyDefined By
  back : Material
Defines the material applied to the back side of the cube.
CubeMaterialsData
  bottom : Material
Defines the material applied to the bottom side of the cube.
CubeMaterialsData
  front : Material
Defines the material applied to the front side of the cube.
CubeMaterialsData
  left : Material
Defines the material applied to the left side of the cube.
CubeMaterialsData
  right : Material
Defines the material applied to the right side of the cube.
CubeMaterialsData
  top : Material
Defines the material applied to the top side of the cube.
CubeMaterialsData
Protected Properties
 PropertyDefined By
  ini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
CubeMaterialsData
Public Methods
 MethodDefined By
  
CubeMaterialsData(init:Object = null)
Creates a new CubeMaterialsData object.
CubeMaterialsData
  
addOnMaterialChange(listener:Function):void
Default method for adding a materialChanged event listener
CubeMaterialsData
  
removeOnMaterialChange(listener:Function):void
Default method for removing a materialChanged event listener
CubeMaterialsData
Events
 Event Summary Defined By
  Dispatched when the cube materials object has one of it's materials updated.CubeMaterialsData
Property Detail
backproperty
back:Material

Defines the material applied to the back side of the cube.


Implementation
    public function get back():Material
    public function set back(value:Material):void
bottomproperty 
bottom:Material

Defines the material applied to the bottom side of the cube.


Implementation
    public function get bottom():Material
    public function set bottom(value:Material):void
frontproperty 
front:Material

Defines the material applied to the front side of the cube.


Implementation
    public function get front():Material
    public function set front(value:Material):void
iniproperty 
protected var ini:Init

Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.

leftproperty 
left:Material

Defines the material applied to the left side of the cube.


Implementation
    public function get left():Material
    public function set left(value:Material):void
rightproperty 
right:Material

Defines the material applied to the right side of the cube.


Implementation
    public function get right():Material
    public function set right(value:Material):void
topproperty 
top:Material

Defines the material applied to the top side of the cube.


Implementation
    public function get top():Material
    public function set top(value:Material):void
Constructor Detail
CubeMaterialsData()Constructor
public function CubeMaterialsData(init:Object = null)

Creates a new CubeMaterialsData object.

Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Method Detail
addOnMaterialChange()method
public function addOnMaterialChange(listener:Function):void

Default method for adding a materialChanged event listener

Parameters

listener:Function — The listener function

removeOnMaterialChange()method 
public function removeOnMaterialChange(listener:Function):void

Default method for removing a materialChanged event listener

Parameters

listener:Function — The listener function

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

Dispatched when the cube materials object has one of it's materials updated.