Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ValueChangeEvent

Package | org.apache.flex.events
Class | public class ValueChangeEvent
Inheritance | ValueChangeEvent Event 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

| Property | Defined 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
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | ValueChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, oldValue:Object = null, newValue:Object = null) Constructor. | ValueChangeEvent
|  | cloneEvent():Event Create a copy/clone of the Event object. | Event
|  | createUpdateEvent(source:Object, name:String, oldValue:Object, newValue:Object):ValueChangeEvent [static] A convenience method to create an instance of the ValueChangeEvent. | ValueChangeEvent

Public Constants
Hide Inherited Public Constants
Show Inherited Public Constants

| Constant | Defined By
--- | --- | ---
|  | CHANGE : String = change [static] | Event
|  | COMPLETE : String = complete [static] | Event
|  | VALUE_CHANGE : String = valueChange [static] The default event type. | ValueChangeEvent

Property Detail

newValue | property

`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.

oldValue | property |

`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.

propertyName | property |

`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.

source | property |

`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_CHANGE | Constant

`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.

Mon Sep 5 2016, 07:19 AM -07:00