# Sound object

**URL:** <https://forum.kirupa.com/t/sound-object/62241>\
**Category:** Uncategorized\
**Created:** [August 26, 2004, 5:12am UTC](https://forum.kirupa.com/t/sound-object/62241 "2004-08-26T05:12:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jins](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@Jins](https://forum.kirupa.com/u/Jins)\
**Post date:** [August 26, 2004, 5:12am UTC](https://forum.kirupa.com/t/sound-object/62241/1 "2004-08-26T05:12:07Z")

</div>

face some problem here : Have 2 page of text to be show with sound. Also have 1 page let user to click on radio button to choose whether want to listen to the sound or not listen to the sound.

how to load the sound to play while the user click on tat page n if the user choose to off the sound all the sound on page 1 n page 2 will off.

how to do this with using as?

---

<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:** [August 26, 2004, 5:45am UTC](https://forum.kirupa.com/t/sound-object/62241/2 "2004-08-26T05:45:48Z")

</div>

Everything on the Sound object:  
[http://kennybellew.com/tutorial/](http://kennybellew.com/tutorial/)

scotty(-:

---

<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:** [August 26, 2004, 7:36am UTC](https://forum.kirupa.com/t/sound-object/62241/3 "2004-08-26T07:36:28Z")

</div>

hi thanks for reply .Solve problem for tat part , now problem is has 1 page tat have 2 radio button to let user click to choose sound on or sound off.  
if sound off the sound for all page is off , how to do for tat part n have to show user the radio button is click(show black for the button) so when click back button the new data for the clicked radio button will show when the next time user want to change to sound on.

problem is the back button , how to save the new data for the clicked radio button.

---

<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:** [August 26, 2004, 9:19am UTC](https://forum.kirupa.com/t/sound-object/62241/4 "2004-08-26T09:19:37Z")

</div>

Try this

```auto
stop();
song1 = new Sound(this);
song1.attachSound("s1");
song2 = new Sound(this);
song2.attachSound("s2");

```

code for button in frame 1

```auto
on (release) {
	song2.stop();
	_root.gotoAndStop(2);
	song1.start();
}

```

code for button in frame 2

```auto
on (release) {
	song1.stop();
	_root.gotoAndStop(1);
	song2.start();
}

```

scotty(-:

---

<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:** [August 26, 2004, 9:35am UTC](https://forum.kirupa.com/t/sound-object/62241/5 "2004-08-26T09:35:24Z")

</div>

hi, i already solve it n now face new problem. i already edit my msg just now.
