Package | com.adobe.mediacore.events |
Class | public class MetadataEvent |
Inheritance | MetadataEvent ![]() |
Property | Defined By | ||
---|---|---|---|
key : String [read-only]
The key associated with this event. | MetadataEvent | ||
oldValue : * [read-only]
The old value associated with this event. | MetadataEvent | ||
value : * [read-only]
The value associated with this event. | MetadataEvent |
Method | Defined By | ||
---|---|---|---|
MetadataEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, key:String = null, value:* = null, oldValue:* = null)
Constructor. | MetadataEvent |
Constant | Defined By | ||
---|---|---|---|
VALUE_ADD : String = valueAdd [static]
Event dispatched when a new value has been added
to the specified metadata. | MetadataEvent | ||
VALUE_CHANGE : String = valueChange [static]
Event dispatched when an existing value has beein change. | MetadataEvent | ||
VALUE_REMOVE : String = valueRemove [static]
Event dispatched when an existing value has been removed
form the specified metadata. | MetadataEvent |
key | property |
key:String
[read-only] The key associated with this event.
public function get key():String
oldValue | property |
oldValue:*
[read-only] The old value associated with this event. Only valid for VALUE_CHANGE events.
public function get oldValue():*
value | property |
value:*
[read-only] The value associated with this event.
public function get value():*
MetadataEvent | () | Constructor |
public function MetadataEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, key:String = null, value:* = null, oldValue:* = null)
Constructor.
Parameterstype:String — Event type.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior associated with the event can be prevented.
| |
key:String (default = null ) — The key associated with the event.
| |
value:* (default = null ) — The value associated with the event.
| |
oldValue:* (default = null ) — The old value associated with the event. Only valid for VALUE_CHANGE events.
|
VALUE_ADD | Constant |
public static const VALUE_ADD:String = valueAdd
Event dispatched when a new value has been added to the specified metadata. The value property of this event contains the actual value being added.
VALUE_CHANGE | Constant |
public static const VALUE_CHANGE:String = valueChange
Event dispatched when an existing value has beein change. The value property of this event contains the new value being set while the oldValue property contains the previous value. The comparision between them is done using "==" and not exact match.
VALUE_REMOVE | Constant |
public static const VALUE_REMOVE:String = valueRemove
Event dispatched when an existing value has been removed form the specified metadata. The value property of this event contains the actual value being removed.