User Guide

FLVPlayback class 555
Usage 2: listener function
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
- TextArea component on the Stage with an instance name of my_ta
*/
import mx.video.*;
my_ta.visible = false;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
function the_end(eventObject:Object):Void {
my_ta.text = "That's All Folks!";
my_ta.visible = true;
};
my_FLVPlybk.addEventListener("complete", the_end);
See also
Event summary for the FLVPlayback class, FLVPlayback.removeEventListener(),
FLVPlayback.ALL
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
mx.video.FLVPlayback.ALL
Description
A read-only FLVPlayback class property that contains the string constant, "all". You can use
this property as the
type parameter for the findCuePoint() and findNearestCuePoint()
methods.
Example
The following example looks among all cue points for a cue point named point2 that has a
time of 7.748. The example shows the
type and time properties for the cue point that
was found.