# SoundComplete script not working

**URL:** <https://forum.kirupa.com/t/soundcomplete-script-not-working/108311>\
**Category:** Uncategorized\
**Created:** [April 23, 2004, 5:22pm UTC](https://forum.kirupa.com/t/soundcomplete-script-not-working/108311 "2004-04-23T17:22:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandman9](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sandman9](https://forum.kirupa.com/u/Sandman9)\
**Post date:** [April 23, 2004, 5:22pm UTC](https://forum.kirupa.com/t/soundcomplete-script-not-working/108311/1 "2004-04-23T17:22:49Z")

</div>

Hello

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

```auto

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

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

```

Sandman9
