Accessibility

Flash Article

 

Controlling Flash Video with the FLVPlayback Behaviors


Dan Carr

Dan Carr

Dan Carr Design

Table of Contents

Created:
12 September 2005
User Level:
Intermediate

The FLVPlayback behaviors are the next generation of media behaviors for use with Flash Video. They are designed to give you easy-to-use controls for the new FLVPlayback component, which is included in Flash Professional 8. You can use these behaviors to add a range of functionality to your video projects by adding prebuilt code snippets to buttons, screens, and other objects in your movie.

This article provides nine custom behaviors that I built to trigger the component's basic functions through ActionScript. By using them you will be able to load multiple videos into a single FLVPlayback component, change which video is currently displaying, start and stop the currently playing video, and seek to cue points and times within the currently playing video. I've also included quick-start instructions for their use.

Note: If you are still using Flash MX Professional 2004 and not Flash Professional 8, please see the previous version of this article, Controlling Media Components with Flash Behaviors.

Requirements

To complete this tutorial you will need to install the following software and files:

Macromedia Flash Professional 8

Macromedia Extension Manager

Tutorials and sample files:

Prerequisite Knowledge

You will need to know the ins and outs of encoding Flash Video and using the FLVPlayback component before the behaviors will be useful. Please refer to the following Getting Started section for more resources.

About the author

Dan Carr is owner, lead developer, and trainer for Dan Carr Design in San Francisco. With years of history developing for Macromedia and Adobe, Dan has created a range of features available in Flash, including e-learning templates, UI components, and Developer Resource Kit extensions. Dan teaches Flash design and ActionScript classes in San Francisco and develops e-learning and web applications for the public, as well as for Adobe product teams.