Change mc duration with slider

I’m new to actionscript, but here’s what I would like to do.
I want to have a single animation and two sliders. slider1 will advance and rewind the movieclip,we’ll call it “scrubbing”, while slider2 will change the highest frame of the mc acheivable by the “scrub” slider1. Therefore if slider2 is at one end slider1 will not advance the mc at all, while if slider2 is maxed out then slider1 will “scrub” the whole movie.

I would appreciate any help on where to begin with this, even just which tutorials to read. thx.