Packageaway3d.events
Classpublic class ElementEvent
InheritanceElementEvent Inheritance flash.events.Event

Passed as a parameter when a meshelement event occurs

Public Properties
 PropertyDefined by
  element : Element
A reference to the element object that is relevant to the event.
ElementEvent
Public Methods
 MethodDefined by
  
ElementEvent
(type:String, element:Element)
Creates a new ElementEvent object.
ElementEvent
  
clone():Event
Creates a copy of the ElementEvent object and sets the value of each property to match that of the original.
ElementEvent
Public Constants
 ConstantDefined by
  MAPPING_CHANGED : String = "mappingChanged"
[static] Defines the value of the type property of a mappingChanged event object.
ElementEvent
  VERTEX_CHANGED : String = "vertexChanged"
[static] Defines the value of the type property of a vertexChanged event object.
ElementEvent
  VERTEXVALUE_CHANGED : String = "vertexvalueChanged"
[static] Defines the value of the type property of a vertexvalueChanged event object.
ElementEvent
  VISIBLE_CHANGED : String = "visibleChanged"
[static] Defines the value of the type property of a visibleChanged event object.
ElementEvent
Property detail
elementproperty
public var element:Element

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

Constructor detail
ElementEvent()constructor
public function ElementEvent(type:String, element:Element)Parameters
type:String — The type of the event. Possible values are: ElementEvent.VERTEX_CHANGED, ElementEvent.VERTEXVALUE_CHANGED and ElementEvent.VISIBLE_CHANGED.
 
element:Element — A reference to the element object that is relevant to the event.
Init Parameters
Method detail
clone()method
public override function clone():Event

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

Returns
Event
Constant detail
MAPPING_CHANGEDconstant
public static const MAPPING_CHANGED:String = "mappingChanged"

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

VERTEX_CHANGEDconstant 
public static const VERTEX_CHANGED:String = "vertexChanged"

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

VERTEXVALUE_CHANGEDconstant 
public static const VERTEXVALUE_CHANGED:String = "vertexvalueChanged"

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

VISIBLE_CHANGEDconstant 
public static const VISIBLE_CHANGED:String = "visibleChanged"

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

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

Code examples

Comments