Sorry, it's bee a while since I wrote that script, so I forgot to mention
that movie_flv in my code is an AS2 Video Playback component that has the
movie attached to it instead of a simple movie clip. It's located in the
components panel.  You might want to try theVideo.playheadTime instead, but
if that doesn't work, you could try using this component instead. Or better
yet, if you're using Flash 8, try the new video component that Muzak
mentioned (Flv Playback) which has a "complete" event.

PS: I just saw Helen's post - that's definitely worth a try.

Karina
 

> -----Original Message-----
> From: natalia Vikhtinskaya [mailto:[EMAIL PROTECTED] 
> Sent: 18 January 2007 13:35
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] how to know that thae video is finished?
> 
> Sorry,  maybe I do something wrong but I can not get PlayHead Time
> 
> 
> 
> var movie_flv:mx.controls.MediaDisplay;
> 
> 
> 
> var nc:NetConnection=new NetConnection();
> 
> nc.connect(null);
> 
> var ns:NetStream=new NetStream(nc);
> 
> ns.setBufferTime(3);
> 
> ns.onStatus=function(info){
> 
>             if (info.code=="NetStream.Buffer.Full "){
> 
>                                     bufferClip._visible=false;
> 
>                         }
> 
>                         if (info.code=="NetStream.BufferEmpty"){
> 
>                                     bufferClip._visible=true;
> 
>                         }
> 
>                         if 
> (info.code=="NetStream.Play.Stop"){  //this place not always 
> works. So for some video
> 
> 
> //it just stops at the end. I want it goes to the
> 
> 
> //start position and paused.
> 
>                                     ns.seek(0);
> 
>                         }
> 
> 
> 
> }
> 
> theVideo.attachVideo(ns);
> 
> ns.play("video/shoeshdmaster_vp6520.flv");
> 
> 
> 
>  var videoInterval=setInterval(videoStatus,10);
> 
> 
> 
> ns["onMetaData"]=function(obj){
> 
>             duration=obj.duration;
> 
> }
> 
> function videoStatus(){
> 
>                         trace(movie_flv.playheadTime)  //show 
> undefined
> 
>             }
> 
> 
> 
> 2007/1/18, Muzak <[EMAIL PROTECTED]>:
> >
> > Flash 8 has a new (and improved) Video component 
> > mx.controls.MediaDisplay no longer exists in Flash 8 and is 
> replaced 
> > with mx.video.FLVPlayback 
> > http://livedocs.macromedia.com/flash/8/main/00003477.html
> >
> > FLVPlayback component has a "complete" event:
> > http://livedocs.macromedia.com/flash/8/main/00003537.html
> >
> > regards,
> > Muzak
> >
> > ----- Original Message -----
> > From: "Karina Steffens" <[EMAIL PROTECTED] >
> > To: "'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com>
> > Sent: Thursday, January 18, 2007 1:23 PM
> > Subject: RE: [Flashcoders] how to know that thae video is finished?
> >
> >
> > > Isn't it amazing that Adobe/MM never bothered setting up a simple 
> > > onStopMovie event?...
> > >
> >
> >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training 
> > http://www.figleaf.com http://training.figleaf.com
> >
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to