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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ActionScript 3 actionscript3 - 跟踪动作以获取有关FLV视频中提示点的信息相关的知识,希望对你有一定的参考价值。

/* ||||||||||||||||| 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]

this is the same trace code i demo'd in class.  i've just tidied it up a bit by adding in a few tabs [\t] and a linebreak [\n]at the end, so it formats up neater.  i cannae help it - i'm just such a perfectionist!
||||||||||||||||||||||||||||||||||||||||||| */

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

以上是关于ActionScript 3 actionscript3 - 跟踪动作以获取有关FLV视频中提示点的信息的主要内容,如果未能解决你的问题,请参考以下文章

在 JavaScript 和 ActionScript 之间共享数组引用

MXML 和用于移动设备的 ActionScript 之间的真正区别是啥?

ActionScript 3 使用ActionScript 3暂停框架

ActionScript 3 ActionScript 3延迟功能

ActionScript 3 ActionScript 3 SliceBitmap类

ActionScript 3 ActionScript 3中的XML循环