# Sound object

**URL:** <https://forum.kirupa.com/t/sound-object/131846>\
**Category:** Uncategorized\
**Created:** [December 20, 2004, 3:27pm UTC](https://forum.kirupa.com/t/sound-object/131846 "2004-12-20T15:27:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicoka](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nicoka](https://forum.kirupa.com/u/nicoka)\
**Post date:** [December 20, 2004, 3:27pm UTC](https://forum.kirupa.com/t/sound-object/131846/1 "2004-12-20T15:27:53Z")

</div>

When you press the button again, the sound wil play over the playing sound; how can I avoid this?

on (release) {  
mijngeluid = new Sound(this);  
mijngeluid.attachSound(“coolsound”);  
mijngeluid.start(0, 99);  
}
