Desperately seeking clips

Many people have asked, "Am I able to jump through a video to particular scenes without having to use Cue Points?" The answer is ,"Yes you can". You can see it in this example or download the file and see for yourself:

As you see, you can populate a List Box component with a series of cue points in the video and tie them to the FLVPlayback component through a databinding in the Component Inspector. The neat thing about it is you don't have to add cue points to the FLV... you use the timing in the video to determine where to go. Just be aware the time chosen is not exactly that. The playBackheadTime is the location of the nearest keyframe in the FLV.

The component inspector.

Here's how that was done:

Binding the data

With labels and the data created for the ListBox, you now have to "bind" the FLV's to the MediaDisplay component. Here's how:

  1. Select the ListBox on the stage.
  2. Open the Component inspector and click the Bindings tab.
  3. Add a new binding by clicking the + sign to open the Add Binding dialog box.
  4. Select the binding: selectedItem:Object
  5. Click the Use Path Expression to select it.
  6. Enter "data" into the input box. This tells the component what is being used.
  7. Click OK to close the dialog box.
  8. The binding named "selectedItem:data" will appear in the Component Inspector.

The binding

Image 2: The data in the ListBox component will be used for the binding.

Now that the data in the ListBox is to be used, it needs to be bound to the FLVPlayback component. Here's how:

  1. Click the binding you have just created to select it.
  2. Double click the Bound To property in the binding list. The Bound To dialog box will open.
  3. Select the FLVPlayback component in the left column.
  4. Select playheadTime:Number in the Schema Location list in the right column.
  5. Click OK to close the dialog box.
  6. Save the movie and test it.
  7. If everything works, publish the movie.

The binding to the video component is created

Image 3: The data in the ListBox, which is a string, is bound to the FLVPlayback component.

This is all done using the FLVPlayback.playheadTime property which is part of the FLVPlayback component that is included in Flash Professional 8.

Creative Comommons License logo