Frame Jumping Action Script Help!

I want to be able to add action script to a button that not only plays a movie but is able to jump frames in the same movie. For example I want to be able to add an action script to a button so that when the button is released I want the movie to start at frame 10, play till it reaches, frame 20, then immediately jump to frame 30, play to frame 40 and then stop. The Idea is to play different parts of the movie (animation) in sequence with just one button. Whenever I press the button I don’t want to see the animation in frames 1-9 or 11-19. If I can figure out how to do this I will be to have different buttons controlling different sequences of the animation of the movie. Is this possible. I haven’t been able to figure it out yet.