ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.DISCONNECTED | |||
Flash Player 8.
Flash Professional 8.
mx.video.FLVPlayback.DISCONNECTED
A read-only FLVPlayback class property that contains the string constant "disconnected". You can compare this property to the state property to determine if a disconnected state exists.
The FLVPlayback instance is in a disconnected state until you set the contentPath property.
The following example simply shows a message in the Output panel that confirms that the FLVPlayback instance is in a disconnected state before setting the contentPath property.
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.*;if(my_FLVPlybk.state == FLVPlayback.DISCONNECTED)trace("FLVPlayback instance is currently disconnected");my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
FLVPlayback.contentPath, FLVPlayback.state
|
|
|
|