How to add a progress bar in a flash movie player

Hello Ther…
I have created a flash player which reads an flv file from server, actually when i press on the play button i want to play and have a progress bar to shown the duration time for the video. I tried to look for it online but i got only for mp3 files when i tried the code it does’nt work. Any help would be highly appreciated.