Check for end of video playback?

how can I check that the video is done playing (loaded streamed using the flvPlayback component), and then when it is, go to a specific frame?

thanks for any help!