# Actionscript 2 sound help!

**URL:** https://forum.kirupa.com/t/actionscript-2-sound-help/316048
**Category:** flash
**Created:** [November 11, 2010, 11:27am UTC](https://forum.kirupa.com/t/actionscript-2-sound-help/316048 "2010-11-11T11:27:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zklasen](https://avatars.discourse-cdn.com/v4/letter/z/65b543/32.png) [@Zklasen](https://forum.kirupa.com/u/Zklasen)
#### Post date: [November 11, 2010, 11:27am UTC](https://forum.kirupa.com/t/actionscript-2-sound-help/316048/1 "2010-11-11T11:27:05Z")

</div>

Hi, i am trying to make a car game where you can pick up stuff. Why you pick up an item i want it to sound, and it dose. But the problem for me is, when i put an other sound on the car, you will only hear the car, as long as you are driving. When i don’t press my “UP” key and the car only glide in to the item, i can hear it. But not both.

```auto
onClipEvent (enterFrame){
    if(_root.car1.hitTest(this)){
                var coin:Sound = new Sound();
        coin.attachSound("COIN");
        coin.start();
        _root.score++;
        unloadMovie(this)
        }
    }

```

That’s the script i use on the coin.

```auto
onClipEvent(enterFrame){
    if(Key.isDown(Key.UP)){
        var UP:Sound = new Sound();
        UP.attachSound("up");
        UP.start();
        }
        if(Key.isDown(Key.DOWN)){
        var DOWN:Sound = new Sound();
        DOWN.attachSound("down");
        DOWN.start();
        }
    }

```

and that’s the script i use on the car.

I think i have something to do with the script i put on the car, when i press my up key flash plays alot of that sound and not just 1 as i want it to.

Thx
