Well you're not crazy, but I've no solution I'm afraid:

http://tech.groups.yahoo.com/group/flexcomponents/message/1549

I'd imagine it's something to do with how the flv is encoded? You 
could try catching a state change event when the video stops playing 
at the end, but I haven't tried that myself...

Good luck.
Bill

--- In [email protected], "Yair Flicker" <[EMAIL PROTECTED]> wrote:
>
> Hello again!
> 
> I'm having ANOTHER problem with the VideoDisplay control where I 
set it
> to play a video, attach an event handler to its complete event, but 
the
> complete event never gets triggered/fired! Note this happens
> consistently with select FLV's - it doesn't happen all the time. To
> rephrase that, on certain FLV's the VideoDisplay control operates
> properly and fires the complete event on completion, on other 
certain
> FLV's the VideoDisplay control completes but doesn't fire the 
complete
> event!!! Am I crazy? Or is this another blatant bug?
> 
> Try this MXML (I'm using Flex 2.01):
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> <http://www.adobe.com/2006/mxml%22>  layout="absolute">
> 
> <mx:Script>
> <![CDATA[
> private function complete():void {
> vid.visible = false;
> txt.visible = true;
> }
> ]]>
> </mx:Script>
> 
> <mx:VideoDisplay id="vid"
> source="http://ash-v14.ash.youtube.com/get_video?video_id=qP_3_NtG-
lo"
> <http://ash-v14.ash.youtube.com/get_video?video_id=qP_3_NtG-lo%22>
> autoPlay="true" width="450" height="338" complete="complete()" />
> 
> <mx:Text id="txt" text="IF YOU SEE ME THE VIDEODISPLAY COMPLETED!!!"
> fontSize="16" color="0x000000" visible="false" />
> 
> </mx:Application>
> 
> That's a 30 second clip btw. You will never see the "IF YOU SEE ME 
THE
> VIDEODISPLAY COMPLETED!!!" text. Now, however, if you change the 
source
> to http://www.mediacollege.com/video-
gallery/testclips/barsandtone.flv
> <http://www.mediacollege.com/video-
gallery/testclips/barsandtone.flv> 
> (6 second clip), the clip completes and you WILL see "IF YOU SEE ME 
THE
> VIDEODISPLAY COMPLETED!!!"
> 
> Any suggestions as to what may be going on?  Thanks!
>


Reply via email to