Help With Timeline

Well, i have a movie clip and i want to know how to make a sliding bar (i can make just the bar), but have the sliding bar the ability to navigate through the entire flash video, basically frame by frame by dragging it across the bar. It is driving me nuts just thinking about it. Any help would be fantastic. Thanks.

lets say the sliding bar has some width to move arround,

say 100 pixels

and you have total 150 frames

so for each pixel of movement you goto frame int(totalframes/slidingbarwidth)

calculate the width by hardcoding it or using some left and right movieclips.

hope this helps