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 not working mute and unmute buttons. ??????
North America
Europe, Middle East and Africa
Asia Pacific