# Sound.start() problems

**URL:** <https://forum.kirupa.com/t/sound-start-problems/38690>\
**Category:** Uncategorized\
**Created:** [December 28, 2003, 8:46am UTC](https://forum.kirupa.com/t/sound-start-problems/38690 "2003-12-28T08:46:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignusb](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@ignusb](https://forum.kirupa.com/u/ignusb)\
**Post date:** [December 28, 2003, 8:46am UTC](https://forum.kirupa.com/t/sound-start-problems/38690/1 "2003-12-28T08:46:42Z")

</div>

hi all, I am having major troubles, i’ve never worked directly with sound in flash b4, and i can’t work out how too make this code work:

function SAP() {  
sound.stop(“forgottenme”);  
gotoAndPlay(“9”, “1”);  
}

mysound = new Sound();  
mysound.attachSound(“forgottenme”);  
mysound.start();  
mysound.onSoundComplete = SAP;

I just want to synchronize a sound, “forgottenme”, using onSoundComplete to go to scene 9, 1st frame. Can someone please tell me why this isn’t working… maybe it’s not “forgottenme”, thats the name i assigned it in the library, am i meant to put another name there?

And PLEASE DO NOT tell me it is in help, I have looked, and I cannot understand it… can someone please tell me why this is not working?!

Thanx all… :ear: listnin 4 a reply

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 28, 2003, 10:56am UTC](https://forum.kirupa.com/t/sound-start-problems/38690/2 "2003-12-28T10:56:09Z")

</div>

actually, it is in the help section 🙂

btw use AS tags please!

```auto

mysound = new Sound();
mysound.start();
mysound.onSoundComplete = function () {
mysound.stop();
gotoAndPlay("9", "1");
};
mysound.attachSound("forgottenme");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 28, 2003, 11:00am UTC](https://forum.kirupa.com/t/sound-start-problems/38690/3 "2003-12-28T11:00:15Z")

</div>

AS tags? im just a n00b… i’ll do it from now on… but thanx anywayz, it helped a lot.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 28, 2003, 11:01am UTC](https://forum.kirupa.com/t/sound-start-problems/38690/4 "2003-12-28T11:01:57Z")

</div>

vB tags … ‘[‘as’]‘my code’[’/as’]’

without the single quotes

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 28, 2003, 11:05am UTC](https://forum.kirupa.com/t/sound-start-problems/38690/5 "2003-12-28T11:05:51Z")

</div>

err… sorry, i stand corrected, that code didnt help, i just tried it, and it STILL doesn’t work, it just goes straight to scene 9 frame 1… why is this doing this to me!!!  
[ripping hair out]
