# SOUND Help

**URL:** <https://forum.kirupa.com/t/sound-help/8082>\
**Category:** Uncategorized\
**Created:** [November 13, 2002, 2:49pm UTC](https://forum.kirupa.com/t/sound-help/8082 "2002-11-13T14:49:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bacalao](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@bacalao](https://forum.kirupa.com/u/bacalao)\
**Post date:** [November 13, 2002, 2:49pm UTC](https://forum.kirupa.com/t/sound-help/8082/1 "2002-11-13T14:49:46Z")

</div>

I’m loading sound into my presentation like this

```auto

mySound = new Sound();
mySound.loadSound("latinmusic.mp3", false);
mySound.start("", 999);
mySound.setvolume(30 );

```

What I can’t figure out is how to hit a button to pause and then to play again. Can somebody help, please? 😏

---

<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:** [November 13, 2002, 3:46pm UTC](https://forum.kirupa.com/t/sound-help/8082/2 "2002-11-13T15:46:41Z")

</div>

Sorry should have looked in the threads a little harder.

the answer was

```auto

on (press) {
	_root.mysound.stop();
}

```

and

```auto

on (press) {
	_root.mysound.start();
}

```

duh!!!  
I wasn’t going back to \_root.

Sorry again for posting

---

<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:** [November 13, 2002, 4:18pm UTC](https://forum.kirupa.com/t/sound-help/8082/3 "2002-11-13T16:18:22Z")

</div>

well, i was working in the last 30 minutes in this topic, but my flash i think got nuts…

here i go: you said you want a button to **pause** not to **stop** the sound. with that script you stop and then the sound will begin from the beginning, “analyse this”:

som1 = new Sound();  
som1.loadSound(“music.mp3”, false);  
som1.start("", 999);

ok , this will load the sound and start playing, but i create a mc, with this script:

onclipEvent(enterFrame){  
posicao = \_root.som1.position;  
//this will hold the position of the sound as an integer  
this.mc\_text.text = posicao;  
//in this mc have a dynamic text field, i use this to see if the  
//position property was working, it will update the position  
//every o,1 seconds  
}

and in the buttons i added this:

on(release){  
som1.start(mc\_text.posicao, 99);  
}

and the sound don’t begin!!! it had to start from the last position… but it simply don’t starts…

---

<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:** [November 13, 2002, 4:40pm UTC](https://forum.kirupa.com/t/sound-help/8082/4 "2002-11-13T16:40:14Z")

</div>

But when I tried it the the sound wouldn’t start up from the load of the flash presentation. And when I hit the buttons they work to turn the sound on and off. Wierd to me.

Do you have any suggestions?

---

<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:** [November 13, 2002, 4:47pm UTC](https://forum.kirupa.com/t/sound-help/8082/5 "2002-11-13T16:47:14Z")

</div>

Could you upload your .fla to show me?
