Return to Snippet

Revision: 15124
at June 25, 2009 08:55 by stiobhart


Initial Code
/* ||||||||||||||||| CUEPOINT TRACES ||||||||||||||||||||
these trace actions are handy for returning the info that flash has about any cuepoints it encounters, embedded in an FLV [flash video] file. put these traces inside a cuepoint listener function to test whether flash is picking up the cuepoints in the first place, before you add any more complicated code.  these traces will display:

- the 'event' the listener has detected [ie. a cuepoint]
- the name of the cuepoint
- the type of the cuepoint [ie. 'event' or 'navigation']
- the time the cuepoint sits at in the video

[note: this code assumes your FLV video file has an instance name of 'vid'.  if you change the instance name change the "this.vid.playheadTime" part of the code accordingly]
||||||||||||||||||||||||||||||||||||||||||| */



// begin traces
trace("listener detected: \t"+eventObject.type);
trace("cuepoint is called: \t"+eventObject.info.name);
trace("cuepoint is of type: \t"+eventObject.info.type);
trace("vid playhead time: \t"+vid.playheadTime);
trace("------\n");
// end traces

Initial URL


Initial Description
this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list

Initial Title
actionscript -  trace actions to get info about cuepoints in FLV video

Initial Tags
actionscript, flash, video

Initial Language
ActionScript