Packagecom.adobe.mediacore.events
Classpublic class MetadataEvent
InheritanceMetadataEvent Inheritance flash.events.Event

A MetadataEvent is dispatched by a Metadata object when metadata values are added, removed, or changed.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
MetadataEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, key:String = null, value:* = null, oldValue:* = null)
Constructor.
MetadataEvent
Public Constants
 ConstantDefined 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
Property Detail
keyproperty
key:String  [read-only]

The key associated with this event.


Implementation
    public function get key():String
oldValueproperty 
oldValue:*  [read-only]

The old value associated with this event. Only valid for VALUE_CHANGE events.


Implementation
    public function get oldValue():*
valueproperty 
value:*  [read-only]

The value associated with this event.


Implementation
    public function get value():*
Constructor Detail
MetadataEvent()Constructor
public function MetadataEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, key:String = null, value:* = null, oldValue:* = null)

Constructor.

Parameters
type: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.
Constant Detail
VALUE_ADDConstant
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_CHANGEConstant 
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_REMOVEConstant 
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.