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