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

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
Unique identifier
Material
 Inheritedthickness : Number
Determines the thickness value of the wire
WireframeMaterial
  visible : Boolean
[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
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
 EventSummaryDefined by
 Inherited Dispatched when the any visual aspect of the material changes.Material
Property detail
_alphaproperty
protected var _alpha:Number
alphaproperty 
alpha:Number  [read-write]

Determines the alpha value of the material

Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
_colorproperty 
protected var _color:uint
colorproperty 
color:uint  [read-write]

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]

Indicates whether the material is visible

Implementation
    public function get visible():Boolean
Constructor detail
WireColorMaterial()constructor
public function WireColorMaterial(color:* = null, init:Object = null)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 Parameters
 wireColor:Color (default = wireColor)
 alpha:Number (default = 1, min:0, max:1)
Method detail
clone()method
public override 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.
Wiki link
Click to go to the wiki page for 'away3d.materials.WireColorMaterial'

Code examples

Comments