netStream

Is there a way when you load an flv and use the netConection and then netStream to find out the end frame of the flv when it has loaded in?
Basically the last frame of the video.

The reason for this is if the video is finished I want it to go back to the first frame.