Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Using ActionScript and Compo... > Setting FLVPlayback properties in Fl...

Setting FLVPlayback properties in Flash

As mentioned earlier, much of the video functionality required by the average project can be accomplished easily without code, using Flash’s intuitive component parameters to set common properties. In the case of the FLVPlayback component, you can use the Component Parameters section of the Property inspector to choose the initial video file that will play in the component as well as set the type and appearance of the controls with which the user can manipulate the video. This is what you will do now.

1.
With the vidPlayer component selected onstage, open the Property inspector if it is not already visible (Window > Properties) and make sure that the Component Parameters are visible.

As you can see in the figure, there are many properties that can be set for the video and its playback. You will leave most of these settings at their defaults, but a few you will set now. Keep in mind that all these settings can also be controlled with ActionScript.

The most important setting for the FLVPlayback component is the one that determines which video file will play in the component. This is the source property. Soon you will set this property using ActionScript, but for now you will try choosing the initial source video here in the Property inspector.

Note

The path for the source property in the Component Parameters are written as an absolute path to the selected file on your local hard drive, so use care when using this technique.

2.
In the Component Parameters area of the Property inspector, click the pencil icon to the right of the Source property.

3.
In the dialog box that appears, browse to the Lessons > Lesson11 > Video folder and choose the Solution5.f4v file. Then click OK. The path to the video file that you selected will appear to the right of the source property.

4.
Test the movie. The video that you selected will play inside the FLVPlayback component.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint