Please help with simple scripting!

[LEFT][FONT=Arial]I’m trying to create a little 10 image slideshow with a simple play/pause button.[/FONT]

[FONT=Arial] The images fade in and out with a tween, and are paused for a few seconds between fades using the following code:[/FONT]

[FONT=Arial]

stop();

[/FONT]



[FONT=Arial] var nInterval = setInterval(Play, 3000);[/FONT]

[FONT=Arial] function Play() {[/FONT]
[FONT=Arial] clearInterval(nInterval);[/FONT]
[FONT=Arial] gotoAndPlay(_currentframe+1);[/FONT]
[FONT=Arial] }[/FONT]

[FONT=Arial]I’m trying to add a play/pause button as well as a coupe of skip buttons, but I’m having real trouble stopping the main timeline, I’ve tried a few different methods revolving around [/FONT]

on(release){
 _root.stop();
 this.nextFrame();
}

[FONT=Arial]
[/FONT][FONT=Arial](this.nextFrame(); is used as my play/pause buttons are on frames 1 and 2 of a 2 frame movie clip on the main timeline, used to show different button states)[/FONT]

[FONT=Arial] It’s since struck me that when I stop the timeline with the button it probably sets a new interval and then plays again after 3 seconds?[/FONT]

[FONT=Arial] My question is - How do I get round this? Alternatively if someone can point out another method to both pause my images for a few seconds and stop everything all together then I’m open to suggestions.[/FONT]

[FONT=Arial] Thanks in advance![/FONT]
[FONT=Arial] Matthew[/FONT] [/LEFT]