Pause and play function

I am using a stop(); gotoAndPlay with setInterval on a series of swf files that are loaded into a container movie. There is a bug in doing this, in which when one of the swfs is loaded into the container and you click on a link to load a different swf before the current swf has gotten to the frame in which you reach this function, its stops the function and nothing pauses/plays anymore.

stop(); //the last frame you want the movie played

gotoAndPlay('62'); // "x" is the next frame will be playing
clearInterval (playAgain);

playAgain=setInterval(goAgain, 5000);