Packageaway3d.events
Classpublic class MaterialEvent
InheritanceMaterialEvent Inheritance flash.events.Event

Passed as a parameter when a material event occurs

Public Properties
 PropertyDefined by
  extra : Object
A reference to a user defined extra object that is relevant to the event.
MaterialEvent
  material : Material
A reference to the material object that is relevant to the event.
MaterialEvent
Public Methods
 MethodDefined by
  
MaterialEvent
(type:String, material:Material)
Creates a new MaterialEvent object.
MaterialEvent
  
clone():Event
Creates a copy of the MaterialEvent object and sets the value of each property to match that of the original.
MaterialEvent
Public Constants
 ConstantDefined by
  LOAD_ERROR : String = "loadError"
[static] Defines the value of the type property of a loadError event object.
MaterialEvent
  LOAD_PROGRESS : String = "loadProgress"
[static] Defines the value of the type property of a loadProgress event object.
MaterialEvent
  LOAD_SUCCESS : String = "loadSuccess"
[static] Defines the value of the type property of a loadSuccess event object.
MaterialEvent
  MATERIAL_CHANGED : String = "materialChanged"
[static] Defines the value of the type property of a materialChanged event object.
MaterialEvent
  MATERIAL_UPDATED : String = "materialUpdated"
[static] Defines the value of the type property of a materialUpdated event object.
MaterialEvent
Property detail
extraproperty
public var extra:Object

A reference to a user defined extra object that is relevant to the event.

materialproperty 
public var material:Material

A reference to the material object that is relevant to the event.

Constructor detail
MaterialEvent()constructor
public function MaterialEvent(type:String, material:Material)Parameters
type:String — The type of the event. Possible values are: MaterialEvent.RESIZED.
 
material:Material — A reference to the material object that is relevant to the event.
Init Parameters
Method detail
clone()method
public override function clone():Event

Creates a copy of the MaterialEvent object and sets the value of each property to match that of the original.

Returns
Event
Constant detail
LOAD_ERRORconstant
public static const LOAD_ERROR:String = "loadError"

Defines the value of the type property of a loadError event object.

LOAD_PROGRESSconstant 
public static const LOAD_PROGRESS:String = "loadProgress"

Defines the value of the type property of a loadProgress event object.

LOAD_SUCCESSconstant 
public static const LOAD_SUCCESS:String = "loadSuccess"

Defines the value of the type property of a loadSuccess event object.

MATERIAL_CHANGEDconstant 
public static const MATERIAL_CHANGED:String = "materialChanged"

Defines the value of the type property of a materialChanged event object.

MATERIAL_UPDATEDconstant 
public static const MATERIAL_UPDATED:String = "materialUpdated"

Defines the value of the type property of a materialUpdated event object.

Wiki link
Click to go to the wiki page for 'away3d.events.MaterialEvent'

Code examples

Comments