On Button Click If Statment

Hi All

I have a flash movie that plays through automatically pausing on each frame for a set amount of seconds.

I used the following code to pause the movie which works 100%:
stop();
var interval:Number = setInterval(
function():Void {
play();
clearInterval(interval);
},
2000
)

But now i have several buttons on the movie as well, now what i want to happen is that when any one of the buttons is clicked it should ignore the above piece of code and not pause on the frame but stop on the frame.

I need help in doing this please, not quite sure as to how to achieve it.
Any help will be appreciated.
Thanks.
Tak