您好我正在使用 FLVPlayback 2.5 组件并收到此错误,请帮助!- 无法将 fl.video: 转换为 flash.events.VideoEvent。
as3 代码使用 -
comp.addEventListener(Event.COMPLETE, videoComplete);
function videoComplete(event:VideoEvent):void {
trace("videoComplete");
}
完全错误 -
TypeError:错误 #1034:类型强制失败:无法将 fl.video::VideoEvent@6e974dd1 转换为 flash.events.VideoEvent。在 flash.events::EventDispatcher/dispatchEventFunction() 在 flash.events::EventDispatcher/dispatchEvent() 在 fl.video::FLVPlayback/ http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent () 在 flash.events::EventDispatcher/dispatchEventFunction() 在 flash.events::EventDispatcher/dispatchEvent() 在 fl.video::VideoPlayer/ http://www.adobe.com/2007/flash/flvplayback/internal: :httpDoStopAtEnd() 在 fl.video::VideoPlayer/ http://www.adobe.com/2007/flash/flvplayback/internal::httpNetStatus()
修复感谢罗尼!欢呼的人。这对我有用..
import fl.video.VideoEvent;
comp.addEventListener(Event.COMPLETE, videoComplete);
function videoComplete(event:Event):void {
trace("videoComplete");
}