left = mc._x; right = mc._x; top = mc._y; bottom = mc._y+120; mc.onPress = function() { this.startDrag(false,left,top,right,bottom); updateAfterEvent(); drag = true; }; mc.onRelease = function() { this.stopDrag(); drag = false; }; mc.onReleaseOutside = function() { this.stopDrag(); drag = false; }; music = new Sound(); music.attachSound("mysound"); music.start(0,10); mc.onEnterFrame = function() { if (drag == true) { _root.music.setVolume(100-(this._y-top)); } };