# \[FMX\]Attached sound isn't working

**URL:** <https://forum.kirupa.com/t/fmx-attached-sound-isnt-working/50310>\
**Category:** flash\
**Created:** [May 1, 2004, 3:27pm UTC](https://forum.kirupa.com/t/fmx-attached-sound-isnt-working/50310 "2004-05-01T15:27:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [May 1, 2004, 3:27pm UTC](https://forum.kirupa.com/t/fmx-attached-sound-isnt-working/50310/1 "2004-05-01T15:27:20Z")

</div>

Hi,

I have the following problem. I have a attachSound for three wav files in the library. This is the code:

```auto
song1 = new Sound();
song1.attachSound("song1");
song2 = new Sound();
song2.attachSound("song2");
song3 = new Sound();
song3.attachSound("song3");
song1.start();

```

Nothing wrong so far. When the movie starts, song1 start playing. I have a stop button with the following code:

```auto
on (release) {
 stopAllSounds();
}

```

This is also working.When I press the button the music stops. When I press the song1 button, song1 start playing again. But when I press on of the othet two buttons nothing happens. This is the code for the buttons:

```auto
on (release){
 _root.mc_menu.song1.start();
 _root.mc_menu.song2.stop();
 _root.mc_menu.song3.stop();
}

```

What am I doing wrong ?
