The following instructions explain how to setup the FlvPlaylist component in Flash. The playlist makes it possible to add multiple .flv movies to the player as well as feeding the list of movies through an external XML file. The FlvPlaylist is used in conjunction with either the FlvDisplayPro/FlvDisplayProStream or the FlvPlayerPro/FlvPlayerProStream components.
1. Create a new layer on your timeline and name it playlist. It is advisable to move this layer so that it appears below the layer containing the player. This way, if the player is resized to full stage, the playlist will disappear underneath the player, instead of over the video.
2. Open the components panel and drag a copy of the FlvPlaylist component from the flvPlayerPRO/flvPlayerPROStream folder onto the playlist layer.
3. With the FlvPlaylist component still selected, open the properties panel and give it the instance name playList
4. Select the FlvPlayerPro or FlvDisplayPro component that's on the stage, locate the Flv Playlist Instance parameter and enter the value playList (the instance name that you assigned to the playlist in the previous step).
Having set up both components you now need to provide the FlvPlaylist component with information about the FLV files that you would like to to. The rest of this tutorial will show you how to do this by using the component parameters, for simplicity. To take advantage of the flexibilty offered by the XML solution we recommend that after this tutorial, you follow the XML tutorial.
5. If the FlvPlaylist component is not still selected, click on it with the selection tool to highlight it. In the properties panel click the Parameters tab (or you may use the Component Inspector).
6. Locate the Flv Videos parameter and double click on it so that the dialog box appears. Click the '+' sign to add an item:
For the title, enter a title for your FLV file (for example: 'My Video').
For the location enter the path to your FLV file (for example: 'myFolder/myVideo.flv').
Repeat this step for each FLV file that you wish to include in your playlist.
Click OK when completed.
7. Press Ctrl+S (Windows) or Cmnd+S (Mac) to save your file and press Ctrl+Enter (Windows) or Cmnd+Enter (Mac) to test it.
Note: If the parameters Flv File and Flv Playlist Instance are both stated, the list of .flv files and repeat settings of the FlvPlaylist will override these setting in the FlvPlayerPRO parameters.