Stopping sound problem

I can play my desired sound by putting the code below.

theSoundBG.play();

However, I can’t stop the sound when I put this code.

theSoundBG.stop();

I will get an error saying “stop is not a function” when the game runs.

Help ? Thanks.