Is there a simple way to get the elapsed time when using netconnection and netstream for an FLV in AS2 ? Also, how can I know when the FLV is done playing so I can run a function? I have scanned Google’s database all the way back to 1978 and didn’t find a thing. Thanks!
yournetstreamobject.timeshould give you the elapsed time and use
yournetstreamobject.onStatusto get the status of the net stream and react accordingly.
myvideo.time just showed me “undefined” (yes, I looped it) and I tried all different types of naming conventions, but still nothing… I will try onStatus for the end… thanks!
time is not a property of the video. It is a property of the netstream object. Refer to flash help for more info.
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.