Slider to move through frames

Wanting to make a horizontal slider, which when you shift the handle to the right will move the playhead up 1 frame in the flash timeline. I tried a slider with rollover buttons underneath it, so when you move the slider to the right you also come across a button with an onrollOver gotoAndPlay script, but it doesn’t work. Either I get the slider to work, but the buttons won’t respond or the buttons respond and the slider doesn’t. The width of the slider should correspond with a fixed number of frames, the statring point being frame 1, and the end (when the slider is all the way to the right) the max (last frame) of possible frames. Thanks