User Guide

FLVPlayback class 539
FLVPlayback class
Inheritance MovieClip > FLVPlayback class
ActionScript Class Name mx.video.FLVPlayback
FLVPlayback extends the MovieClip class and wraps a VideoPlayer object. For information
on the VideoPlayer class, see “VideoPlayer class” on page 706.
Unlike other components, the FLVPlayback component does not extend UIObject or
UIComponent and, therefore, does not support the methods and properties of these classes.
For example, you must call the MovieClip method,
attachMovie(), rather than the
UIObject method,
createClassObject(), to create an instance of the component in
ActionScript.
The methods and properties of the FLVPlayback class enable you to play and manipulate FLV
files using the FLVPlayback component in your Flash application.
Setting a property of the FLVPlayback class with ActionScript overrides an equivalent
parameter that initially set the property in the Property inspector or the Component
inspector.
Each component class has a
version property, which is a class property. Class properties are
available only on the class itself. The
version property returns a string that indicates the
version of the component. The following code shows the version in the Output panel:
trace(mx.video.FLVPlayback.version);
Method summary for the FLVPlayback class
The following table lists the methods of the FLVPlayback class:
Method Description
FLVPlayback.addASCuePoint() Adds an ActionScript cue point.
FLVPlayback.addEventListener() Creates a listener for a specified event.
FLVPlayback.bringVideoPlayerToFront() Brings a video player to the front of the stack of
video players.
FLVPlayback.closeVideoPlayer()
Close NetStream for the video player with the
specified index and deletes the video player.
FLVPlayback.findCuePoint() Finds the specified type of cue point that has the
specified time, the specified name, or the
specified time and name.
FLVPlayback.findNearestCuePoint() Finds the specified type of cue point at or near
the given time or with the given name.