I added a ton of comments to help you igure it out. This
probably isn't the best method, but at least it's something. Let me
know if you have any questions about how it works.
PS - You can click anywhere on the bar or click and drag the
slider button to make the movieclip jump to that position. This
feature can be disabled, as well as the movieclip stopping when you
drag the slider.