FLVPlayback.DISCONNECTED

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

mx.video.FLVPlayback.DISCONNECTED

Description

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.

Example

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";

See also

FLVPlayback.contentPath, FLVPlayback.state