# Sounds control

**URL:** <https://forum.kirupa.com/t/sounds-control/61286>\
**Category:** Uncategorized\
**Created:** [August 17, 2004, 3:00pm UTC](https://forum.kirupa.com/t/sounds-control/61286 "2004-08-17T15:00:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bongbox](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bongbox](https://forum.kirupa.com/u/bongbox)\
**Post date:** [August 17, 2004, 3:00pm UTC](https://forum.kirupa.com/t/sounds-control/61286/1 "2004-08-17T15:00:43Z")

</div>

hey you guys once again need your help … like always hehe  
i did a search on kirupa already but cant find one tutorial or source file of a volume control but not a slider, turnable volume control see example at

> **[SLIM STUDIO - Toronto Web Development Services](http://www.slimstudio.com/)**
>
> We offer web development services that will engage your target audience, stimulate website traffic, and cultivate your brand.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2004, 3:00am UTC](https://forum.kirupa.com/t/sounds-control/61286/2 "2004-08-18T03:00:42Z")

</div>

hehe, belive it or not that works exaclty in the same way as my footer  
the volume thing goes just in 180 degrees ok?  
so 0 degrees are 0% volume and 180 degrees are 100& volume  
then, you have to activate a function onEnterFrame that will be refreshing the volume acording to the position (angle) of the volume controller  
onPress + onMouseMove you have to acivate a function that will change the \_rotation of the controler clip depending on the position of the mouse:  
function rotate(clip){  
a = \_parent[clip].\_y-\_parent.\_ymouse;  
b = \_parent[clip].\_x-\_parent.\_xmouse;  
angleA = Math.atan2(a, b);  
degrees = angleA/(Math.pi/180);  
\_parent[clip].\_rotation = degrees;}  
that code must be placed inside another movie clip,that can be an empty one
