User Guide

610 FLVPlayback Component (Flash Professional Only)
FLVPlayback.metadataReceived
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.metadataReceived = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("metadataReceived", listenerObject);
Description
Event; dispatched the first time the FLV file metadata is reached. The event object has an
info property that contains the info object received by the NetStream.onMetaData
callback.
The event also has the
vp property, which is the index number of the video player to which
the event applies. For more information, see
FLVPlayback.activeVideoPlayerIndex
on page 549 and
FLVPlayback.visibleVideoPlayerIndex on page 688.
Example
The following example creates a listener for the metadataReceived event. When the event
occurs, the event handler sends the name, time, and type of each cue point that is described in
the
metadata property to the Output panel.