User Guide
FLVPlayback class 619
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.playheadUpdateInterval = 5;
var listenerObject:Object = new Object();
listenerObject.playheadUpdate = function(eventObject:Object):Void {
if ((eventObject.playheadTime >= 5) && (eventObject.playheadTime < 5.05))
{
my_FLVPlybk.pause();
}
}
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
listenerObject.paused = function(eventObject:Object) {
trace("FLV is " + my_FLVPlybk.state + "!");
};
my_FLVPlybk.addEventListener("paused", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.pause(), FLVPlayback.paused, FLVPlayback.state,
FLVPlayback.stateChange
FLVPlayback.paused
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.paused
Description
Property; a Boolean value that is true if the FLV file is in a paused state. Read-only.