Posted By

stiobhart on 06/25/09


actionscript flash video listener interactive college cuepoint

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


actionscript - cuepoint listener for FLV video in flash

 / Published in: ActionScript

basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash

  1. // add an event listener to the video to listen for cuepoints
  2. // in this case the videoclip instance name is 'vid'
  3. // if you change the instance name change the code accordingly
  5. var listenerObject:Object = new Object();
  6. listenerObject.cuePoint = function(eventObject:Object):Void
  7. {
  9. // stuff the function does goes below here
  12. // stuff the function does goes above here
  14. }
  15. vid.addEventListener("cuePoint", listenerObject);

Report this snippet  

You need to login to post a comment.