# Sound problem

**URL:** <https://forum.kirupa.com/t/sound-problem/245811>\
**Category:** Uncategorized\
**Created:** [December 4, 2007, 2:04pm UTC](https://forum.kirupa.com/t/sound-problem/245811 "2007-12-04T14:04:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fw2803](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@fw2803](https://forum.kirupa.com/u/fw2803)\
**Post date:** [December 4, 2007, 2:04pm UTC](https://forum.kirupa.com/t/sound-problem/245811/1 "2007-12-04T14:04:48Z")

</div>

Hi all  
I have been working with the sound of my game.

I currently have 3 sound clips, all exported. I put the following codes to the player’s tank.

```auto

onClipEvent (load) {
  var tankDie = new Sound()
  tankDie.attachSound("tankDie")
  var tankMiss = new Sound()
  tankMiss.attachSound("tankMiss")
  var tankGatt = new Sound()
  tankGatt.attachSound("tankGatt")
}

```

Then I play the sounds at various points

```auto

onClipEvent (enterFrame) {
  //when health is less than or equals 0, play tankDie (tankDie.start())
  //when the tank fires missiles, play tankMiss (tankMiss.start())
  //when the tank fires gattling cannon, play tankGatt (tankGatt.start())
}

```

I got only 2 of them working. tankDie.start() and tankGatt.start() worked. But tankMiss.start() did not play the sound. I have checked the linkage and I cannon find any problems. I also tried some other sound clips but I still could not solve the problem.

The most ridiculous thing is that for firing missiles and gattling cannons, the codes are nearly the same. However, only the gattling cannon sound clip worked but not the missile sound clip…

Can anyone help?
