User Guide
FLVPlayback class 579
FLVPlayback.contentPath
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.contentPath
Description
Property; a string that specifies the URL of the FLV file to stream and how to stream it. The
URL can be an HTTP URL to an FLV file, an RTMP URL to a stream, or an HTTP URL to
an XML file.
If you set this property through the Component inspector or the Property inspector, the FLV
file begins loading and playing at the next
MovieClip.onEnterFrame event. The delay
provides time to set the
isLive, autoPlay, and cuePoints properties, among others, which
affect loading. It also allows ActionScript that is placed on the first Frame to affect the
FLVPlayback component before it starts playing.
If you set this property through ActionScript, the FLVPlayback instance closes the current
FLV file and immediately begins loading the new FLV file. The
autoPlay, totalTime, and
isLive properties affect how the new FLV file is loaded, so if you set these properties, you
must set them before setting contentPath property.
Set the
autoPlay property to false to prevent the new FLV file from playing automatically.
Example
The following example sets the contentPath property in ActionScript to specify the location
of the FLV file to play.