Specify the contentpath parameter – Adobe Flash Professional CS3 User Manual

Page 330

Advertising
background image

FLASH CS3

User Guide

324

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.

b

Enter the URL or local path to either the FLV file or the XML file (for Flash Media Server or FVSS) that describes

how to play the FLV.

If you do not know the location of the FLV or XML file, click the folder icon to navigate to the correct location. When
browsing for an FLV file, if it is at or below the location of the target SWF file, Flash automatically makes the path
relative to that location so that it is ready for serving from a web server. Otherwise, it is an absolute Windows or
Macintosh file path.

Advertising