Timeline control!

Hi,

I’m just starting out in actionscripting (using 3.0). I’m trying to work out how to add script to a button that will tell it to go to one frame, play until told to stop, then go to another frame and play until told to stop.

So for example:

Button is clicked and movie goes to frame 20, plays until frame 47 and then goes to frame 167, plays until frame 209 and stops.

Is this possible?

Any help greatly appreciated!

Thanks!