User Guide

580 FLVPlayback Component (Flash Professional Only)
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Do not assign a value to the
contentPath parameter in the Component
inspector. Add the following code to Frame 1 of the Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
var listenerObject:Object = new Object();
listenerObject.metadataReceived = function(eventObject:Object):Void {
my_FLVPlybk.setSize(my_FLVPlybk.preferredWidth,
my_FLVPlybk.preferredHeight);
}
my_FLVPlybk.addEventListener("metadataReceived", listenerObject);
See also
FLVPlayback.autoPlay, FLVPlayback.isLive, FLVPlayback.play(),
FLVPlayback.totalTime
FLVPlayback.cuePoint
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("cuePoint", listenerObject);
Description
Event; dispatched when a cue point is reached. The event object has an info property that
contains the
info object received by the NetStream.onCuePoint callback for FLV file cue
points. For ActionScript cue points, it contains the object that was passed into the
ActionScript cue point methods or properties.
This event has a
vp property, which is the index number of the video player to which this
event applies.