As is stated in Introduction on Virtual Host, Flash Video Server is a C / S based video streaming platform. Client-side developers can create consoles for video playing, video publish, and live video delivering. This tutorial is to tell you how to create a FLV Player for Flash Video Server. Tools: Macromedia Flash 8, Flash Video Server. Notes: Readers who plan to follow this guide shall be with some basic knowledge of using Flash 8 and Action Script. Output: The picture below shows the output Player for Flash Video Server. End users can enter the desired URL, their user name, password, and play the FLV on the Server.
Let's see what we have on the Player. We need an area for video streaming, some text boxes for inserting information, and some buttons to control the video. Once the authorized end user entered the right URL, user name, and password, and click Play, the video will start to play in the video screen. Click Stop, the video will stop at the very beginning.
1. Launch Macromedia Flash 8 and create a new Flash document.
And then we can create and place the relative contents on this Flash document. Video screen: Press Ctrl + L, the Library window will pop up. Right click in the blank of Name & Type section and select "New Video …". Name it in Symbol box and select Video (ActionScript-controlled). Press OK to confirm.
Drag it to the Flash document and you can modify the size and position. You can click it and set its Properties by expanding the menu at bottom. Here we set the Width as 400 and Height as 300. Then you must name this video screen in "Instance Name" box as marked in the above picture. Here we name it as "video_screen".
By clicking the blank area on the document and expand Properties, you can set the size of the Flash document. Here we click the red-marked button and set the dimension as 400 * 400 pixels. Text objects By clicking the "A" button on Tools window, we can add text on the document. Just drag an area and insert "URL:", and then, choose Window / Common Libraries / Learning Interactions.
In the pop up window we can drag the TextInput button to the document. This is the box we insert URL. Repeat the upper steps to add "User:" and "Password" text boxes.
Align and modify them as follows. Name the objects: Select the relative TextInput box, and select Properties to insert the right instance name. URL TextInput box: txtVideo User TextInput box: txtUser Password TextInput box: txtPassword And then set the relative parameters.
Same with the upper step, you must select the right object and set:
URL TextInput box:
User TextInput box:
Here you can leave it empty.
Password TextInput box:
This text box can be empty.
Buttons: Please follow the settings in the following pictures.
The red-marked boxes show the required changes.