actionscript - cuepoint listener for FLV video in flash


/ Published in: ActionScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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
  4.  
  5. var listenerObject:Object = new Object();
  6. listenerObject.cuePoint = function(eventObject:Object):Void
  7. {
  8.  
  9. // stuff the function does goes below here
  10.  
  11.  
  12. // stuff the function does goes above here
  13.  
  14. }
  15. vid.addEventListener("cuePoint", listenerObject);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.