FLVPlayback.bufferingBarHidesAndDisablesOthers

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

my_FLVPlybk.bufferingBarHidesAndDisablesOthers

Description

Property; if set to true, hides the SeekBar control and disables the Play, Pause, PlayPause, BackButton and ForwardButton controls while the FLV file is in the buffering state. This can be useful to prevent a user from using these controls to try to speed up playing the FLV file when it is downloading or streaming over a slow connection.

Example

The following example assumes playing a streaming FLV file from a FMS or FVSS. It sets the bufferingBarHidesAndDisablesOthers property to disable the Play, Pause, PlayPause, BackButton, and ForwardButton controls and to hide the SeekBar control while the FLV file is buffering.

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. In the statement that loads the contentPath property, replace the italicized text with the name and location of an FLV file on your FMS.

/**
 Requires:
  - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.bufferTime = 15;
my_FLVPlybk.bufferingBarHidesAndDisablesOthers = true;
my_FLVPlybk.contentPath = "rtmp://host_name/somefolder/vid_name.flv";

See also

FLVPlayback.bufferingBar