does not not keys mute and mute

var myGlobalSound:Sound = new Sound();
myGlobalSound.start(0, 99);
playB.visible=true;
stopB.visible=false;


volControl_mc.dragger_mc._y = 0;
volControl_mc.dragger_mc.onEnterFrame = function() {
        myGlobalSound.setVolume(0-this._x);
};
volControl_mc.dragger_mc.onPress = function() {
        startDrag(this, false, 0, this._y, 41, this._y);
};
volControl_mc.dragger_mc.onRelease = volControl_mc.dragger_mc.onReleaseOutside=function () 
{
        stopDrag();
};
stopB.onRelease = function() {
       myGlobalSound.stop();
        playB.visible=true;
        stopB.visible=false;
};
playB.onRelease = function() {
        myGlobalSound.start(0, 99);
        playB.visible=false;
        stopB.visible=true;

But does not disable and reactivate the buttons.  ??????

I'm moving to as3 kglad...

Tags: Adobe Animate

Similar Questions

Maybe you are looking for