FLASH CS3
User Guide
323
Note:
In most instances, it is not necessary to alter the settings in the FLVPlayback component unless you want to change
the appearance of a video skin. The Video Import wizard sufficiently configures the parameters for most deployments.
autoPlay
Boolean value that determines how to play the FLV. If
true
, the FLV plays immediately when it is loaded.
If
false
, loads the first frame and pauses. The default value is
true
.
autoRewind
Boolean value that determines whether the FLV is automatically rewound. If
true
, the Video component
automatically rewinds the FLV to the beginning when the playhead reaches the end or when the user clicks the stop
button. If
false
, the Video component does not automatically rewind the FLV. The default value is
true.
autoSize
Boolean value that, if
true
, resizes the component at runtime to use the source FLV dimensions. The
default value is
false
.
Note:
The encoded frame size of the FLV is not the same as the default dimensions of the FLVPlayback component.
bufferTime
Number of seconds to buffer before beginning playback. The default value is 0.
contentPath
String that specifies the URL to an FLV or to an XML file that describes how to play the FLV. Double-
click the Value cell for this parameter to activate the Content Path dialog box. The default is an empty string. If you
do not specify a value for the
contentPath
parameter, nothing happens when Flash executes the FLVPlayback
instance.
isLive
Boolean value that, if
true
, specifies that the FLV is streaming live from FMS. The default value is
false
.
cuePoints
A string that specifies the cue points for the FLV. Cue points allow you to synchronize specific points in
the FLV with Flash animation, graphics, or text. The default value is an empty string.
maintainAspectRatio
A Boolean value that, if
true
, resizes the video player in the FLVPlayback component to retain
the source FLV aspect ratio; the source FLV is still scaled and the FLVPlayback component itself is not resized. The
autoSize
parameter takes precedence over this parameter. The default value is
true
.
skin
A parameter that opens the Select Skin dialog box and allows you to choose a skin for the component. The
default value is None. If you choose None, the FLVPlayback instance does not have control elements that allow the
user to play, stop, or rewind the FLV, or take other actions that the controls make possible. If the
autoPlay
parameter
is set to true, the FLV plays automatically. For more information, see “Customizing the FLVPlayback component” in
Using ActionScript 3.0 Components
or
ActionScript 2.0 Components Language Reference
.
totalTime
Total number of seconds in the source FLV. The default value is 0. If you use progressive download, Flash
uses this number if it is set to a value greater than zero (0). Otherwise, Flash tries to take the time from metadata.
Note:
If you’re using FMS or FVSS, this value is ignored; the total time of the FLV is taken from the server.
volume
A number from 0 to 100 that represents the percentage of maximum volume at which to set the volume.
Specify the contentPath parameter
If you imported a local video clip into Flash for use with progressively downloaded or streaming video content,
update the
contentPath
parameter of the FLVPlayback component before uploading your content to a web server.
The
contentPath
parameter specifies the name and location of the FLV on the server, and implies the playback
method (for example, progressively download using HTTP, or streaming from Flash Media Server using RTMP).
1
With the component selected, open the Property inspector (Window
> Properties > Properties) and select Param-
eters in the Property inspector, or open the Component inspector (Window
> Component Inspector).
2
Enter values for parameters, or use the default settings as appropriate. For the
contentPath
parameter, do the
following:
a
Double-click the Value cell for the
contentPath
parameter to activate the Content Path dialog box.