SoundComplete script not working

Hello

Can anyone tell me why this script is not going to the “nextFrame();” once the sound has played?


stop();
bgSound = new Sound(this);
bgSound.attachSound("welcome.wav");
bgSound.start(0, 1);

bgSound.onSoundComplete = function()
{
       nextFrame();
}

Sandman9