Stopping a rewind

I have a rewind button called previous_s1 but I would like it to rewind ten frames and then stop. It would also work if I can make it stop on a certain frame. Does anyone know how to do this. This is the code I have so far but it rewinds the entire movie.

previous_s1.addEventListener(MouseEvent.CLICK,previouss1);
function previouss1(event:MouseEvent):void {
sketchesmc.addEventListener(Event.ENTER_FRAME,rewind);
}
function rewind(event:Event):void
{
sketchesmc.prevFrame();
}