# setVolume

**URL:** <https://forum.kirupa.com/t/setvolume/170855>\
**Category:** Uncategorized\
**Created:** [November 29, 2005, 11:32pm UTC](https://forum.kirupa.com/t/setvolume/170855 "2005-11-29T23:32:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![punkerton](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/punkerton/32/637_2.png) [@punkerton](https://forum.kirupa.com/u/punkerton)\
**Post date:** [November 29, 2005, 11:32pm UTC](https://forum.kirupa.com/t/setvolume/170855/1 "2005-11-29T23:32:15Z")

</div>

I’ve got + and - volume buttons. They are doing this:

myMusic.setVolume(\_root.myMusic.getVolume() + 10);

And this works fine. The problem is the - button cranks the sound down to zero and if you keep clicking it starts to go back up again.

I seem to be incapable of stopping the volume at 0. Any suggestions?

Thanks
