# Changing volume using coordinates

**URL:** <https://forum.kirupa.com/t/changing-volume-using-coordinates/130549>\
**Category:** Uncategorized\
**Created:** [December 6, 2004, 8:36am UTC](https://forum.kirupa.com/t/changing-volume-using-coordinates/130549 "2004-12-06T08:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgirard](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tgirard](https://forum.kirupa.com/u/tgirard)\
**Post date:** [December 6, 2004, 8:36am UTC](https://forum.kirupa.com/t/changing-volume-using-coordinates/130549/1 "2004-12-06T08:36:00Z")

</div>

Need some help here.

Id like to increase the volume of a sound loop gradually as the  
mouse gets closer to a button or mc, and decrease the volume  
as the mouse moves away.

Im a bit of a beginner to actionscript, Ive found one tutorial that  
is basically what im going for, but it doesnt provide the fla, so  
i couldnt figure it out. its here:

[http://iat.ubalt.edu/courses/old/pbds668.185\_Sp02/noisyRoomImproved.shtml](http://iat.ubalt.edu/courses/old/pbds668.185_Sp02/noisyRoomImproved.shtml)

Can someone explain. Its for a school project. Thanks.
