# Sound volume by position mouse

**URL:** <https://forum.kirupa.com/t/sound-volume-by-position-mouse/323919>\
**Category:** flash\
**Created:** [July 24, 2011, 1:33pm UTC](https://forum.kirupa.com/t/sound-volume-by-position-mouse/323919 "2011-07-24T13:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hvdstaal](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@Hvdstaal](https://forum.kirupa.com/u/Hvdstaal)\
**Post date:** [July 24, 2011, 1:33pm UTC](https://forum.kirupa.com/t/sound-volume-by-position-mouse/323919/1 "2011-07-24T13:33:25Z")

</div>

Is there any code in as3 that sets the volume by x&y- coordinates of the mouse?  
So that my sound is in a MC, and how closer my mouse is at the MC, the louder the volume gets?
