# Volume control?

**URL:** https://forum.kirupa.com/t/volume-control/2298
**Category:** Uncategorized
**Created:** [April 26, 2002, 11:51am UTC](https://forum.kirupa.com/t/volume-control/2298 "2002-04-26T11:51:54Z")
**Posts on this page:** 4
**Page:** 1

<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: [April 26, 2002, 11:51am UTC](https://forum.kirupa.com/t/volume-control/2298/1 "2002-04-26T11:51:54Z")

</div>

I have a volume control that has this script in it:\r\ronClipEvent (mouseMove) {\r&nbsp &nbsp &nbsp &nbsp mypoint = new Object();\r&nbsp &nbsp &nbsp &nbsp mypoint.y = this.\_y;\r&nbsp &nbsp &nbsp &nbsp mypoint.x = this.\_x;\r&nbsp &nbsp &nbsp &nbsp \_root.groove.globalToLocal(mypoint);\r&nbsp &nbsp &nbsp &nbsp \_root.mysound.setVolume(-1_mypoint.y);\r&nbsp &nbsp &nbsp &nbsp updateAfterEvent(mouseMove);\r}\r\rbut the sound I want the control to look at is not being played by the main movie, it is in a movie clip. I’m very bad with understanding layers. Does anyone know what I would change the \_root.mysound.setVolume(-1_mypoint.y) command to to talk to the MC?

---

<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: [April 26, 2002, 12:33pm UTC](https://forum.kirupa.com/t/volume-control/2298/2 "2002-04-26T12:33:50Z")

</div>

where you declare your sound object, just put the movie clip in the parentheses.\rexample:\r\_root.mysound = new Sound (\_root.mcMovie);\r\r:) \rjeremy

---

<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: [April 26, 2002, 1:15pm UTC](https://forum.kirupa.com/t/volume-control/2298/3 "2002-04-26T13:15:51Z")

</div>

I’m able to get the sound to play, I’m just not able to get the volume to control it. So what I’m assuming is happening is that since the attachSound action is inside the movie that is where the volume movie clip needs to look. \r\rI tried what you suggested but I couldn’t even get that to play.

---

<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: [April 29, 2002, 5:50pm UTC](https://forum.kirupa.com/t/volume-control/2298/4 "2002-04-29T17:50:47Z")

</div>

nervermind, I figured out what you were saying sorry I didn’t understand.
