Start and stop background music with one button

I’m working on a small problem, but I can’t solve it!
I’d like to have a button or even a picture called music
which should stop and play the background sound. To stop is no problem,
but to start it again if the sound has stoped, is quiet difficult!
How can I start the sound again?
Could anyone give me a hit, how to program that?

Thank’s a lot for helping me!

mySound.start(); ??

http://www.kirupaforum.com/showthread.php?s=&threadid=9670&highlight=sound

Well, start and stop is no problem, but how do I know, when I have to start and when to stop the sound by pressing the button?
How can I check if the Sound is playing or not?

myButton.onPress = function() {
x++;
mySound.start();
if (x>1) {
mySound.stop();
delete x;
}
};

What a solution! It’s working perfectly!
I tryed it just the wrong way!

thousand thanks h88

The sunday is saved!
:beam: