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 : IMaterial
A reference to the material object that is relevant to the event.
MaterialEvent
Public Methods
 MethodDefined by
  
MaterialEvent
(type:String, material:IMaterial)
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
  CHANGED : String = "materialchanged"
[static] Defines the value of the type property of a materialchanged event object.
MaterialEvent
  RESIZED : String = "materialresize"
[static] Defines the value of the type property of a materialresize 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:IMaterial

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

Constructor detail
MaterialEvent()constructor
public function MaterialEvent(type:String, material:IMaterial)Parameters
type:String — The type of the event. Possible values are: MaterialEvent.RESIZED.
 
material:IMaterial — A reference to the material object that is relevant to the event.
####INIT####
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
CHANGEDconstant
public static const CHANGED:String = "materialchanged"

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

RESIZEDconstant 
public static const RESIZED:String = "materialresize"

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

Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments