Slideshow Question

I have a slideshow with photos in the middle and an arrow on each side. Clicking on an arrow slides the images from left to right so that they are visible through a mask. On my button arrows, I’m using code such as

on (release) {
dest = 30;
this.backwards();
}

for the left button and

on (release) {
play();
}

for the right button. The slides only advance when a button is clicked and there is a stop action when each new slide falls into place. I’d like to change this so that the slideshow auto-plays until a pause button is clicked. It can then be resumed by clicking a play button (which the pause button turns into) or by then clicking on the left and right arrows again to go through the slides manually. Can anyone point me towards an example on how to do this, or would be willing to get me started in my fla if I post it?

Many thanks,

Rusty