I’ve loaded a video into the FLVPlayback component and I’m looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like “00:12/00:50”.
Right now I’m defining the video by the components inspector but I’m eventually hoping to define this bit by actionscript as well. Any tips would be greatly appreciated.
You can find the time here:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#playheadTime
And here:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#totalTime
There is also an event fired at regular intervals so you can easily update the time:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#event:playheadUpdate
Edit: Updated links