Flash Video : Detect end of video

using flash8 and i have a netstream object streaming progressive video… how do i detect the flv is complete? using buffer.flush doesnt work how i need as it flushes the buffer slightly before the video is finished.

thx
snx