Packageorg.apache.flex.events
Classpublic class ValueChangeEvent
InheritanceValueChangeEvent Inheritance Event Inheritance flash.events.Event

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The ValueChangeEvent class replaces the PropertyChangeEvent as the default event for property changes used in the databinding subsystem.



Public Properties
 PropertyDefined By
  newValue : Object
The value of the property after it was changed.
ValueChangeEvent
  oldValue : Object
The value of the property before it was changed.
ValueChangeEvent
  propertyName : String
The name of the property.
ValueChangeEvent
  source : Object
The object that owns the property.
ValueChangeEvent
Public Methods
 MethodDefined By
  
ValueChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, oldValue:Object = null, newValue:Object = null)
Constructor.
ValueChangeEvent
  
createUpdateEvent(source:Object, name:String, oldValue:Object, newValue:Object):ValueChangeEvent
[static] A convenience method to create an instance of the ValueChangeEvent.
ValueChangeEvent
Public Constants
 ConstantDefined By
 InheritedCHANGE : String = change
[static]
Event
  VALUE_CHANGE : String = valueChange
[static] The default event type.
ValueChangeEvent
Property Detail
newValueproperty
public var newValue:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The value of the property after it was changed.

oldValueproperty 
public var oldValue:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The value of the property before it was changed.

propertyNameproperty 
public var propertyName:String

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The name of the property.

sourceproperty 
public var source:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The object that owns the property.

Constructor Detail
ValueChangeEvent()Constructor
public function ValueChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, oldValue:Object = null, newValue:Object = null)

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Constructor.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
oldValue:Object (default = null)
 
newValue:Object (default = null)
Method Detail
createUpdateEvent()method
public static function createUpdateEvent(source:Object, name:String, oldValue:Object, newValue:Object):ValueChangeEvent

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

A convenience method to create an instance of the ValueChangeEvent.

Parameters

source:Object — The source of the object.
 
name:String — The name of the event.
 
oldValue:Object — The value before it was changed.
 
newValue:Object — The value after it was changed.

Returns
ValueChangeEvent — An instance of the ValueChangeEvent.
Constant Detail
VALUE_CHANGEConstant
public static const VALUE_CHANGE:String = valueChange

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The default event type.