hi i am using FLVPlayback 2.5 component and getting this error, please help! – cannot convert fl.video: to flash.events.VideoEvent.
as3 code using –
comp.addEventListener(Event.COMPLETE, videoComplete);
function videoComplete(event:VideoEvent):void {
trace("videoComplete");
}
full error –
TypeError: Error #1034: Type Coercion failed: cannot convert
fl.video::VideoEvent@6e974dd1 to flash.events.VideoEvent. at
flash.events::EventDispatcher/dispatchEventFunction() at
flash.events::EventDispatcher/dispatchEvent() at
fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
at flash.events::EventDispatcher/dispatchEventFunction() at
flash.events::EventDispatcher/dispatchEvent() at
fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::httpDoStopAtEnd()
at
fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::httpNetStatus()
fix thanks to ronnie! cheers man. this works for me..
import fl.video.VideoEvent;
comp.addEventListener(Event.COMPLETE, videoComplete);
function videoComplete(event:Event):void {
trace("videoComplete");
}
Best Answer
lostPixels was right for the most part in explaining what the error means but it isn't
VideoEvent
, its simplyEvent