Packageaway3d.materials
Classpublic class WireColorMaterial
InheritanceWireColorMaterial Inheritance WireframeMaterial Inheritance Material Inheritance flash.events.EventDispatcher
Subclasses ColorMaterial

Wire material for solid color drawing with optional face border outlining



Public Properties
 PropertyDefined By
  alpha : Number
Determines the alpha value of the material
WireColorMaterial
  color : uint
24 bit color value representing the material color
WireColorMaterial
 Inheritedid : int
[read-only] Unique identifier
Material
 Inheritedthickness : Number
Determines the thickness value of the wire
WireframeMaterial
  visible : Boolean
[override] [read-only] Indicates whether the material is visible
WireColorMaterial
 InheritedwireAlpha : Number
Determines the alpha value of the wire
WireframeMaterial
 InheritedwireColor : uint
24 bit color value representing the wire color
WireframeMaterial
Protected Properties
 PropertyDefined By
  _alpha : Number
WireColorMaterial
  _color : uint
WireColorMaterial
 Inheritedini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
WireframeMaterial
 Inherited_thickness : Number
WireframeMaterial
 Inherited_wireAlpha : Number
WireframeMaterial
 Inherited_wireColor : uint = 0x0
WireframeMaterial
Public Methods
 MethodDefined By
  
WireColorMaterial(color:* = null, init:Object = null)
Creates a new WireColorMaterial object.
WireColorMaterial
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Material
  
clone(material:Material = null):Material
[override] Duplicates the material properties to another material object.
WireColorMaterial
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Material
Protected Methods
 MethodDefined By
 Inherited
WireframeMaterial
Events
 Event Summary Defined By
 InheritedDispatched when the any visual aspect of the material changes.Material
Property Detail
_alphaproperty
protected var _alpha:Number

_colorproperty 
protected var _color:uint

alphaproperty 
alpha:Number

Determines the alpha value of the material


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

24 bit color value representing the material color


Implementation
    public function get color():uint
    public function set color(value:uint):void
visibleproperty 
visible:Boolean  [read-only] [override]

Indicates whether the material is visible


Implementation
    public function get visible():Boolean
Constructor Detail
WireColorMaterial()Constructor
public function WireColorMaterial(color:* = null, init:Object = null)

Creates a new WireColorMaterial object.

Parameters
color:* (default = null) — A string, hex value or colorname representing the color of the material.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Method Detail
clone()method
override public function clone(material:Material = null):Material

Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as WireColorMaterial;

Parameters

material:Material (default = null) — [optional] The new material instance into which all properties are copied. The default is WireColorMaterial.

Returns
Material — The new material instance with duplicated properties applied.