Skip navigation
Currently Being Moderated

not working mute and unmute buttons

Oct 3, 2011 3:37 AM

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.  ??????

 
Replies
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 3, 2011 7:47 AM   in reply to Venkom

    there's no sound for that code to control.  what sound are you hearing?  a sound attached to a movieclip timeline?

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 3, 2011 9:35 AM   in reply to Venkom

    you're using an flvplayback component?  if yes, open the flash helpfiles and check the section on the flvplayback class.

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 4, 2011 12:26 PM   in reply to Venkom

    ok.  are you using the netstream class?  (and, by "video", do you mean you're playing an flv file?)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points