Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > FLVPlayback Component > FLVPlayback class > FLVPlayback.paused | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.paused
Property; a Boolean value that is true if the FLV file is in a paused state. Read-only.
The following example creates a listener for the stateChange event. When the event occurs, it checks the paused property to determine whether the component is in the paused state. If so, it shows a message to that effect in the Output panel. You must click the Pause button while the FLV file is playing to cause the paused state to occur.
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) {
if(my_FLVPlybk.paused)
trace("FLV is in " + FLVPlayback.PAUSED + " state");
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
FLVPlayback.paused, FLVPlayback.PAUSED, FLVPlayback.state, FLVPlayback.stateChange
Flash CS3