# Sound volume control

**URL:** <https://forum.kirupa.com/t/sound-volume-control/171687>\
**Category:** flash\
**Created:** [December 7, 2005, 1:33pm UTC](https://forum.kirupa.com/t/sound-volume-control/171687 "2005-12-07T13:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redjoe100](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@redjoe100](https://forum.kirupa.com/u/redjoe100)\
**Post date:** [December 7, 2005, 1:33pm UTC](https://forum.kirupa.com/t/sound-volume-control/171687/1 "2005-12-07T13:33:31Z")

</div>

Dear people of Kirupa

I have a streaming sound loading into a flash project. I would like to control the volume with two simple buttons (but\_volup, but\_voldown). My streaming sound is called myMusic.  
I got this code from a book but all it seams to do is mute and unmute the sound?

can anyone please help me?

but\_volup.onRelease = function()  
{  
myMusic.setVolume(100);  
};  
but\_voldown.onRelease = function()  
{  
myMusic.setVolume(20);  
};
