Break the cycle

I’ve got this cycle:

myInterval = setInterval (slideShow, 5000);

function slideShow () {
gotoAndPlay (13);
}

and I want to break it using a stop button. I’d like it to play forever if left untouched, but to stop with a button. a generic stop won’t do it.

anybody?
thanks.