You may want to listen for Netstream.play.start and then start a timer
on a status method. When the video is complete, pause the timer. If
there's a playlist type functionality, listen to the same events to
start/stop the timer.

There are quite a few status updates when working with video depending
on what your user cases are.

hth


On Fri, Dec 4, 2009 at 9:07 AM, ACE Flash <[email protected]> wrote:
> I am loading an FLV dynamically using the NetConnection and NetStream
> classes and display the video in a Video object, my question is shall I use
> the Enter_Frame event to get the video played time?
>
> If so, I need to remove the event after the video completed by checking
> NetStream.Play.Complete?
>
> thank you
>
> ==== code snippets ==========
>
> videoHolder.addEventListener(Event.ENTER_FRAME, videoPlayTime );
>
> function videoPlayTime(e:Event):void
> {
>         videoPlayTime+"/"+totalVideoDuration;
> }
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to