User Guide
FLVPlayback class 659
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.autoPlay = false;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object) {
my_FLVPlybk.seekPercent(30);
my_FLVPlybk.play();
}
my_FLVPlybk.addEventListener("ready", listenerObject);
See also
FLVPlayback.seek, FLVPlayback.seek(), FLVPlayback.seekSeconds()
FLVPlayback.seekSeconds()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.seekSeconds(time:Number)
Parameters
time A number that specifies the time, in seconds, of the total play time at which to place
the playhead.
Returns
Nothing.
Description
Method; seeks to a given time in the file, specified in seconds, with a precision up to three
decimal places (milliseconds). This method performs the same operation as the
seek()
method; it is provided for symmetry with the
seekPercent() method.