Progress bar in mp3 player

How do you make progress bars (like PurePlayer’s on in a flash file which plays an mp3. I have already made the play, stop and volume controls and they work, but how do you show how much of the song has played on a progress bar, and also is there a way of changing your place in the song using it.