FLVPlayback.autoRewind

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

my_FLVPlybk.autoRewind

Description

Property; a Boolean value that, if true, causes the FLV file to rewind to Frame 1 when play stops, either because the player reached the end of the stream or the stop() method was called. This property is meaningless for live streams. The default value is true.

Example

The following example sets the autoRewind property to false to prevent the FLV file from automatically rewinding when it finishes playing.

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 in the Library
*/
my_FLVPlybk.autoRewind = false;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";