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
[override] 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)

Creates a new MaterialEvent object.

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####
Method Detail
clone()method
override public 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.