flash中FLV视频的actionscript提示点监听器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了flash中FLV视频的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' and the
  3. // function to be triggered by the listener is 'vidstuff'
  4. // if you change the instance name change the code accordingly
  5. this.vid.addEventListener(MetadataEvent.CUE_POINT, vidstuff);
  6.  
  7. // function triggered by the listener when we hit a cuepoint
  8. function vidstuff(event:MetadataEvent):void
  9. {
  10.  
  11. // stuff the function does goes below here
  12.  
  13.  
  14. // stuff the function does goes above here
  15.  
  16. }
  17. // end function triggered by the listener when we hit a cuepoint

以上是关于flash中FLV视频的actionscript提示点监听器的主要内容,如果未能解决你的问题,请参考以下文章

actionscript-flash中FLV视频的提示点监听器

如何使用动作脚本控制 Flash 中的 FLV 播放?

ActionScript 3 AIR — 视频使眨眼跳跃

ActionScript 3 actionscript3 - 跟踪动作以获取有关FLV视频中提示点的信息

使用ActionScript生成FLV视频文件

actionscript-跟踪动作以获取FLV视频中有关提示点的信息