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
 EventSummaryDefined by
   Dispatched when the cube materials object has one of it's materials updated.CubeMaterialsData
Property detail
backproperty
back:Material  [read-write]

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  [read-write]

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  [read-write]

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  [read-write]

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  [read-write]

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  [read-write]

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)Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
Init Parameters
 left:Material
 right:Material
 bottom:Material
 top:Material
 front:Material
 back:Material
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
materialchangedevent 
Event object type: away3d.events.MaterialEvent

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

Wiki link
Click to go to the wiki page for 'away3d.primitives.data.CubeMaterialsData'

Code examples

Comments