Video position and length?

Hi everyone!

I have a question about getting the position and length of a video.
This is how I would do it with a sound file if I want to have a progress bar:


var estimatedLength:int = Math.ceil(snd.length / (snd.bytesLoaded / snd.bytesTotal));
var playbackPercent:uint = Math.round(100 * (channel.position / estimatedLength));
progressBar.width = playbackPercent;

But how does it work with video?

I know that netStream.bytesLoaded and netStream.bytesTotal work, but netStream.position and netStream.length doesn’t.

Thanks