Is there an ActionScript for

Is there any ActionScript that allows me to play (or in some cases rewind) and stop at a given frame??? Thanks.

Mike