User Guide

FLVPlayback class 617
FLVPlayback.PAUSED
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
mx.video.FLVPlayback.PAUSED
Description
A read-only FLVPlayback class property that contains the string constant, "paused". You can
compare this property to the
state property to see if the component is in the paused state.
Example
The following example uses the FLVPlayback.PAUSED property to show the state of the FLV
file when the user clicks the Pause button.
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.*;
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object):Void {
if(eventObject.state == FLVPlayback.PAUSED)
trace("FLV is " + FLVPlayback.PAUSED);
}
my_FLVPlybk.addEventListener("stateChange", listenerObject)
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.state, FLVPlayback.stateChange