Problem with music

Ah… so many problems hey? Lol. Sorry! Also not sure if I posted this in the right forum…

This time its the music…

Ok on one layer I have some AS for music to play…

On another layer I got a play and a stop button…

If there is background music playing already, and I press the play button, another layer of music starts playing on top… How do i fix it so that this does not happen when music is already playing?

These are the codes I used in my fla…



mySound = new Sound();
mySound.attachSound("song");
_root.mySound.start(0,999);


for the play button…



on (press) {
	if (playing!=true) {
		_root.mySound.start(0,999);
		playing=true;
	}
}