martedì, aprile 08, 2008

Cue Points in ActionScript 3

A a few nice examples of using cue points in ActionScript 3!

Flep Studios has a neat tutorial.

David Stiller’s blog has an excellent description of cue points in both AS2 and AS3. Here is an excerpt using ActionScript 3.0:

import fl.video.MetadataEvent;
videoPlayer.addEventListener(
MetadataEvent.CUE_POINT,
function(evt:MetadataEvent):void {
// instructions here
}
);

evt.target points to the FLVPlayback instance
evt.info.name points to the cue point’s name
evt.info.time points to the cue point’s time
evt.info.parameters points to the cue point’s optional parameters