| Package | away3d.primitives.data |
| Class | public class CubeMaterialsData |
| Inheritance | CubeMaterialsData flash.events.EventDispatcher |
See also
| Property | Defined 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 | ||
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the cube materials object has one of it's materials updated. | CubeMaterialsData | |||
| back | property |
back:MaterialDefines the material applied to the back side of the cube.
public function get back():Material public function set back(value:Material):void| bottom | property |
bottom:MaterialDefines the material applied to the bottom side of the cube.
public function get bottom():Material public function set bottom(value:Material):void| front | property |
front:MaterialDefines the material applied to the front side of the cube.
public function get front():Material public function set front(value:Material):void| ini | property |
protected var ini:InitInstance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
| left | property |
left:MaterialDefines the material applied to the left side of the cube.
public function get left():Material public function set left(value:Material):void| right | property |
right:MaterialDefines the material applied to the right side of the cube.
public function get right():Material public function set right(value:Material):void| top | property |
top:MaterialDefines the material applied to the top side of the cube.
public function get top():Material public function set top(value:Material):void| CubeMaterialsData | () | Constructor |
public function CubeMaterialsData(init:Object = null)
Creates a new CubeMaterialsData object.
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
| addOnMaterialChange | () | method |
public function addOnMaterialChange(listener:Function):voidDefault method for adding a materialChanged event listener
Parameters
listener:Function — The listener function
|
| removeOnMaterialChange | () | method |
public function removeOnMaterialChange(listener:Function):voidDefault method for removing a materialChanged event listener
Parameters
listener:Function — The listener function
|
| materialchanged | Event |
away3d.events.MaterialEventaway3d.events.MaterialEventDispatched when the cube materials object has one of it's materials updated.