Packageaway3dlite.materials
Classpublic class ColorMaterial
InheritanceColorMaterial Inheritance Material Inheritance flash.events.EventDispatcher
Subclasses WireColorMaterial

Basic color material.



Public Properties
 PropertyDefined By
  alpha : Number
Defines the transparency of the material.
ColorMaterial
  color : uint
Defines the color of the material.
ColorMaterial
 Inheriteddebug : Boolean
Switches on the debug outlines around each face drawn with the material.
Material
Public Methods
 MethodDefined By
  
ColorMaterial(color:* = null, alpha:Number = 1)
Creates a new BitmapMaterial object.
ColorMaterial
Events
 Event Summary Defined By
 InheritedDispatched when the material becomes visible in a view.Material
 InheritedDispatched when the material becomes invisible in a view.Material
Property Detail
alphaproperty
alpha:Number

Defines the transparency of the material. Default value is 1.


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
colorproperty 
color:uint

Defines the color of the material. Default value is random.


Implementation
    public function get color():uint
    public function set color(value:uint):void
Constructor Detail
ColorMaterial()Constructor
public function ColorMaterial(color:* = null, alpha:Number = 1)

Creates a new BitmapMaterial object.

Parameters
color:* (default = null) — The color of the material.
 
alpha:Number (default = 1) — The transparency of the material.
####INIT####