Packagecom.worlize.api.event
Classpublic class ChangeEvent
InheritanceChangeEvent Inheritance flash.events.Event

Product Version : Worlize APIv.1

Event representing that a piece of data changed.



Public Properties
 PropertyDefined By
  changedBy : User
A User instance representing the Worlize user who changed the property.
ChangeEvent
  name : String
The name of the property that was changed
ChangeEvent
  newValue : *
The new value of the property.
ChangeEvent
  oldValue : *
The old value of the property, before the change.
ChangeEvent
Public Methods
 MethodDefined By
  
ChangeEvent(type:String)
Constructor.
ChangeEvent
Public Constants
 ConstantDefined By
  PROPERTY_CHANGED : String = propertyChanged
[static] The ChangeEvent.PROPERTY_CHANGED constant defines the value of the type property of the event object for a propertyChanged event.
ChangeEvent
  PROPERTY_DELETED : String = propertyDeleted
[static] The ChangeEvent.PROPERTY_DELETED constant defines the value of the type property of the event object for a propertyDeleted event.
ChangeEvent
Property Detail
changedByproperty
public var changedBy:User

Product Version : Worlize API.v1

A User instance representing the Worlize user who changed the property.

nameproperty 
public var name:String

Product Version : Worlize API.v1

The name of the property that was changed

newValueproperty 
public var newValue:*

Product Version : Worlize API.v1

The new value of the property.

oldValueproperty 
public var oldValue:*

Product Version : Worlize API.v1

The old value of the property, before the change.

Constructor Detail
ChangeEvent()Constructor
public function ChangeEvent(type:String)

Product Version : Worlize API.v1

Constructor.

Parameters
type:String — The event type; indicates the action that caused the event.
Constant Detail
PROPERTY_CHANGEDConstant
public static const PROPERTY_CHANGED:String = propertyChanged

Product Version : Worlize APIv.1

The ChangeEvent.PROPERTY_CHANGED constant defines the value of the type property of the event object for a propertyChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
nameThe name of the property that changed on the target object.
changedByA User instance that represents the Worlize user who changed the property, if available
newValueThe new value of the property
oldValueThe old value of the property, as it was before it was changed.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.

PROPERTY_DELETEDConstant 
public static const PROPERTY_DELETED:String = propertyDeleted

Product Version : Worlize APIv.1

The ChangeEvent.PROPERTY_DELETED constant defines the value of the type property of the event object for a propertyDeleted event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
nameThe name of the property that changed on the target object.
changedByA User instance that represents the Worlize user who deleted the property, if available
newValueundefined
oldValueThe old value of the property, as it was before it was deleted.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.