# Help! Mute and dragger not working together

**URL:** https://forum.kirupa.com/t/help-mute-and-dragger-not-working-together/297967
**Category:** flash
**Created:** [October 11, 2009, 1:35pm UTC](https://forum.kirupa.com/t/help-mute-and-dragger-not-working-together/297967 "2009-10-11T13:35:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_da\_best](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Matt\_da\_best](https://forum.kirupa.com/u/Matt_da_best)
#### Post date: [October 11, 2009, 1:35pm UTC](https://forum.kirupa.com/t/help-mute-and-dragger-not-working-together/297967/1 "2009-10-11T13:35:23Z")

</div>

My sound object (below) is working with my volume dragger, but not with the mute button as well. The mute button works without the dragger, but they don’t work together.

Could you help?

```auto
t1 = new Sound();
t1.attachSound("mysound");
t1.start();

t1.onSoundComplete = function() {
_root.gotoAndStop(2);
};

```

Mute button:

```auto

var allsound:Sound = new Sound(this);
butmute.onRelease = function() {
   if (allsound.getVolume() == 100) {
      allsound.setVolume(0);
	  butmute.gotoAndStop(2);
   } else {
      allsound.setVolume(100);
	  butmute.gotoAndStop(1);
   }
};

```

Volume scrubber/dragger:

```auto
slider.slideBar._y = -65;
slider.slideBar.onEnterFrame = function() {
	_root.allsound.setVolume(0-this._y);
};
slider.slideBar.onPress = function() {
	startDrag(this, false, this._x, -65, this._x, 0);
};
slider.slideBar.onRelease = slider.slideBar.onReleaseOutside=function () {
	stopDrag();
};

```

Also, why does the sound not play when this SWF is externally loaded. Help!

Thanks in advance
