you are lucky, i just finished writing this code for someone else !
there are of course different ways to accomplish this. this way seems quick, easy and efficient. you import the VideoEvent Class, and then add a listener to the video playback component that once COMPLETE, it gets removed from the display list. my instance name of the player is "flvPlayer"