# Volume slides but no volume change?

**URL:** <https://forum.kirupa.com/t/volume-slides-but-no-volume-change/324828>\
**Category:** flash\
**Created:** [September 10, 2011, 9:57pm UTC](https://forum.kirupa.com/t/volume-slides-but-no-volume-change/324828 "2011-09-10T21:57:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLKelsey](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@BLKelsey](https://forum.kirupa.com/u/BLKelsey)\
**Post date:** [September 10, 2011, 9:57pm UTC](https://forum.kirupa.com/t/volume-slides-but-no-volume-change/324828/1 "2011-09-10T21:57:17Z")

</div>

Howdy doo!

Having a slight problem with my volume slider. Can’t figure out what it is. I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip.

Here is the code I placed while slider button was a button:

```auto

on (press) {
            startDrag(this, false, left, top, right, bottom);
            }
            on (release) {
            stopDrag();
            }

```

Here is the code I placed when I made it into a movie clip:

```auto

onClipEvent (load) {
          top = _y;
          bottom = _y;
          left = _x;
          right = _x+100;
          _x += 100;
          }
           onClipEvent (enterFrame) {
          _parent.mySound.setVolume(_x-left);
          }

```

It seems right to me but I don’t know. The movie button slides down the slider bar but it just doesn’t affect the volume. Going to try to attach my FLA to offer better insight. Just tried to upload it and no matter if it’s FLA or zipped FLA, it says it failed.

Thanks,  
Brian
