我用FLVPlayback组件播放flv视频的问题
我用FLVPlayback组件播放flv视频,我把这段代码加到第一帧,运行时报错:
my_FLVPlybk.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
function cp_listener(eventObject:MetadataEvent):void {
trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
}
错误信息如下:
discription:1046: Type was not found or was not a compile-time constant: MetadataEvent.
source:function cp_listener(eventObject:MetadataEvent):void {
什么原因,请大家帮忙看看!