Mute Buttons

Hello again bound to be getting used to me by now lol. Basically, i want to make a mute facility for the sound in a game controlled via a single button. The button changes member depending on its state ie. If its muted it will have the button with the image of a speakerphone with a line through it or if sound is playing it will have the image of a speakerphone.
So if the button is in the mute state(no sound) and it is clicked the sound will start playing again and if the button is in the unmute state (sound playing) the sound will stop.
How would i go about doing this?
Pseudocode:
on mousedown
     if currentmember = mute button is clicked then
          Sound1 played    
          Sound2 played    
          Change member to unmute button
     end
     if currentmember = unmute button is clicked then
          Sound1 stops    
          Sound2 stops
          Change member to mute button
     end
end
Thanks for any help, been trying this for a few hours getting absolutely no where although i think the above pseudocode is correct or at least close.

Figured it out if ya follow the pseudocode it pretty much worked.
use sprite(1).member.name = "NameOfButton" then.....

Similar Messages

  • Audio mute button

    Sup guys, just now the mute button on my keyboard doesnt want to get off mute, Ive pressed it and nothing, it stays mute and tried pressing the button to raise the volume and stays mute. Using Hp assistant i have this error IDT HIgh Definition Audio CODEC Error(52) Version 6.10.6395.0. I have a hp envy 4 ultrabook 1015dx...any help?
    This question was solved.
    View Solution.

    Hi,
    Try the following.
    Download the IDT Audio installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp56501-57000/sp56717.exe
    When done, open windows Control Panel, open Device Manager and open up Sound, Video and Game Controllers.  Right click the IDT device and select Uninstall - you should also get a prompt to remove the current driver, tick the box to allow this and then proceed with the uninstall.
    When complete, restart the notebook and let Windows fully load.  Open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, restart the notebook again.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I don't have any volume. When I push the mute button or try to increase the volume up or down nothing happens. The volume shows up as if it were at full volume but no sound. I am so frustrated.

    I need some help with the volume on my macbook pro. I am getting absolutely no sound no matter if I push the volume increase or decrease button. Nothing changes. The volume bar shows up as if it were at full volume but no sound and the mute button doesn't do anything either.
    Please help.

    Go step by step and test.
    1. System Preference > Sound > Output > Internal Speakers
        Highlight  Internal Speakers.
        Make sure that Mute is not enabled.
    2.Plug in and  remove the headphone.
        If you see red light in the headphone port or not, plug the headphone
        in and out of the port 5 or 6 times to flip the microswitch inside.
        Sound output may be stuck in the digital mode.
        Try this even if you don’t see the red light.
    3. Reset PRAM.  http://support.apple.com/kb/PH14222
    4. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    5. Applications > Utilities > Audio MIDI Setup
        Audio Devices window
        Side Bar
        Click the Built-in Output.
        Under Mute any of the boxes checked? If so,uncheck it.
    6. System Preferences > Sound> Sound Effects
        Play sound effects through:
       Select "Internal speakers" and then back to "Selected sound output device".

  • Where is the mute button on a MacBook? Thanks.

    Where is the mute button on a MacBook? I see F10, F11 and  F12, but when I push each, nothing happens when I'm in iPhoto running a slide show and trying to turn the volume down. (I now understand how to mute the music...just have to be sure to punch "set as default" after un-checking the play music button.

    Please continue the original conversation rather than starting multiple threads on the same topic. Otherwise it clutters up the forums.

  • Satellite A660: Remark and a question about illumination/mute button

    Remark:
    Hi, I am a proud owner of a satellite A660-166 (3 days old) and I installed everything from scratch on the win 7 pro since I received my laptop with a home version (need pro for work)...I encountered some problems but this forum really answered all my questions :) Never found such a helpful forum for technical support. So I wanted to express my gratitude and my support for everything you do for the users :)
    Problem: Well, it's not really a problem, more of a curiosity... I had some problems with the eco button at that point illumination/mute button was for mute....Thanks to you guys I found out what needed to be done, I reinstalled Flash card software and everything was working properly plus the illumination/mute button was for illumination now. I don't have anything against that, I prefer it that way, but I'm wondering how do I change that...I found some unanswered thread about using toshiba assistant and the illumination tab...Since my laptop is pretty new, I don't have an illumination tab, I was wondering how do I change the button to mute if I want to?
    Thanks, keep up the good work!

    It is nice to hear you found answers to your questions here. Many people here try to help.
    Back to your issue: It is not easy to offer precise answer and I really dont know if you can change settings for one single button. I think it has something to do with registry entries but how to change it is another question.
    If you use this button for illumination ON/OFF you can use FN+ESC for MUTE option so you will have both options that can be used using one single button or quick key combination.
    Can you please test it and confirm it works properly?

  • Volume and mute buttons do not work. no ringtone

    Volume and Mute buttons do not work. Ringtones and alerts all silent. Sound working for music etc...

    Sounds like you have a speaker fault and the phone would normally require servicing. But seeing as you have had the screen replaced, you will not be able to do this via the Genius Bar.
    You will probably need to go back to the place where you got the screen replaced and ask them to look at the speaker for you.

  • I have an iphone 4 and cannot get my mute off when I am using Facetime. I can hear them, but they can't hear me. When I touch the mute button, nothing happens. Can someone please tell me how to fix this?

    I have an iphone 4 and cannot get my mute off when I am using Facetime. I can hear them, but they can't hear me. When I touch the mute button, nothing happens. Can someone please tell me how to fix this?

    the mute button is a switch you need to flip, not touch. if you look at it and see color, its on.

  • Mute button doesn't work to put phone in standby mode, help??

    I have a blackberry curve and the mute button will not work to put my phone in standby.  It does work to mute a phone call, however.  It has done this a couple of times, where it will work for awhile, and then stop working for awhile.  I'm not sure if I have hit something to make it so I can't put it in standby mode.  Does anyone know how to fix this?

    Welcome to the forums
    Did you press and hold the mute button? It takes a long key press to work. Also do a Battery Pull:
    1. Remove the battery while phone is turned on
    2. Wait a few seconds before inserting it again
    3. Allow the long boot up process to finish (takes a few minutes usually)
    This clears most software issues that occur on blackberries from time to time. You could also use Quickpull, a free app that simulates a battery pull without physically removing the battery: http://store.berryreview.com/product.asp?id=27660&n=QuickPull-Free
    A battery pull reclaims memory lost during application usage and clears minor software errors that creep in over time. The blackberry runs an OS just like your PC runs windows and the battery pull is the equivalent of a reboot/restart on your computer.
    Kijana
    Please remember to:
    1. Mark Accept as Solution on the appropriate post once your issue has been resolved
    2. Give Kudos to helpful posts (click the star next to the post)
    Thanks

  • The Mute button doesn't work in the browser

    I Have the mute button on most of the time cause i don't want to hear alerts, but noticed that in the browser if a webpage has any type of sound it plays it regardless of the status of the mute button. I know the mute button is overwritten by Music/Video but it shouldn't be with Safari.

    App Producks wrote:
    that sounds broken, sad no one replied you two years ago .
    Actually is sounds as if it was working correctly. Mute only mutes notifications (phone rings, text, email, etc). What is less explicable is why you felt the need to resurrect this thread.

  • Volume missing in system tray, mute buttons not working

    hi, i just reformatted and installed the latest drivers for my Creative Soundblaster Digital 5. (dell) card, and at first everything was fine..
    Now they Icon for sound is missing from the system tray.. My volume dial and mute button no longer work. and yes i have gone in and selected to have it appear in the tray.. that does nothing.
    Also, all other sounds are working except for sounds from web browsers.. and I have all the necessary pluggins installed..
    thanks creative... great products...Message Edited by maluut on 0-0-2006 05:07 PM

    I have a similar problem with my elite pro card and would also like an answer.
    I installed the new drivers and now my volume knob does not work nor can I adjust volume with the remote control. The mute button does work though.
    Also why such an annoyance as to need the original disc in order to make the control panel work in the system tray? shouldn't driver updates be complete?
    Also...what's up with the max volume white noise during the driver install which made my ears ring and nearly blew out my speaker system?

  • Controlling sound file with play, stop and mute button in AS3.0?

    the method for stopping/playing sound in 2.0 don't work for 3.0.  i can stop the sound by going to a different page/frame on the site.  but i want the buttons. 
    1. play button?
    2.stop button?
    3.mute button?
    thanks in advance!

    for pause (example 2) :
    for volume -mute (example 1) :
    package
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.*;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.media.SoundTransform;
    import flash.net.URLRequest;
    import flash.utils.Timer;
    public class SoundTransformExample extends Sprite
      private var url:String = "MySound.mp3";
      private var soundFactory:Sound;
      private var channel:SoundChannel;
      private var positionTimer:Timer;
      public function SoundTransformExample()
       stage.align = StageAlign.TOP_LEFT;
       stage.scaleMode = StageScaleMode.NO_SCALE;
       var request:URLRequest = new URLRequest(url);
       soundFactory = new Sound();
       soundFactory.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
       soundFactory.load(request);
       channel = soundFactory.play();
       stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
      private function ioErrorHandler(event:Event):void
       trace("ioErrorHandler: " + event);
      private function setPan(pan:Number):void
       trace("setPan: " + pan.toFixed(2));
       var transform:SoundTransform = channel.soundTransform;
       transform.pan = pan;
       channel.soundTransform = transform;
      private function setVolume(volume:Number):void
       trace("setVolume: " + volume.toFixed(2));
       var transform:SoundTransform = channel.soundTransform;
       transform.volume = volume;
       channel.soundTransform = transform;
      private function mouseMoveHandler(event:MouseEvent):void
       var halfStage:uint = Math.floor(stage.stageWidth / 2);
       var xPos:uint = event.stageX;
       var yPos:uint = event.stageY;
       var value:Number;
       var pan:Number;
       if (xPos > halfStage)
        value = xPos / halfStage;
        pan = value - 1;
       else if (xPos < halfStage)
        value = (xPos - halfStage) / halfStage;
        pan = value;
       else
        pan = 0;
       var volume:Number = 1 - (yPos / stage.stageHeight);
       setVolume(volume);
       setPan(pan);
     package
    import flash.display.Sprite;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.text.TextFieldAutoSize;
    public class SoundChannel_stopExample extends Sprite
      private var snd:Sound = new Sound();
      private var channel:SoundChannel = new SoundChannel();
      private var button:TextField = new TextField();
      public function SoundChannel_stopExample()
       var req:URLRequest = new URLRequest("MySound.mp3");
       snd.load(req);
       button.x = 10;
       button.y = 10;
       button.text = "PLAY";
       button.border = true;
       button.background = true;
       button.selectable = false;
       button.autoSize = TextFieldAutoSize.CENTER;
       button.addEventListener(MouseEvent.CLICK, clickHandler);
       this.addChild(button);
      private function clickHandler(e:MouseEvent):void
       var pausePosition:int = channel.position;
       if (button.text == "PLAY")
        channel = snd.play(pausePosition);
        button.text = "PAUSE";
       else
        channel.stop();
        button.text = "PLAY";

  • T510i microphone mute button doesn't work with Win 7 x64bit Ultimate

    Did anyone managed to make it work  microphone mute button, with Win 7 x64bit Ultimate on t510i? On win 7 x32bit Proffesional it worked fine.
    Any suggestions?
    Solved!
    Go to Solution.

    Hotkey installed?
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS014985
    //JameZ
    Check out the Community Knowledge Base for hints and tips.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    X240 | 8GB RAM | 512GB Samsung SSD

  • My mute button is broke

    My mute button is broke and now I can't unlock my phone? What shall I do?

    If your still under warranty you should send it back to you carrier and have them fix it. if not Try and find a local cell phone repair shop.

  • Adding mute button to time line

    hello,
    I currently have several photos that rotate in an out and i also have a music clip which plays when i test the movie.
    i want to add a mute button from the components tab onto a timeline.
    Not sure how difficult this is for a novice, but I would like to try and figure  it out.  Most of the tutorial i've looked at tell you how to create the button and link it to the music. I haven't come across anything that tells  you how to embed it into a timeline. any help would be great. owen

    that gives you the least control of your sound.
    but for a mute button you can either:
    1.  assign your sound's sync property to stream and stop the timeline when you want the sound to stop or
    2.  use SoundMixer.stopAll() (as3) or stopAllSounds() (as2).

  • Mute Button on a Midi controller. How do I set this up?

    I want to setup a button on my midi controller keyboard, as a mute button for a certain track.
    I select the track, hit 'Mute' with the mouse, and then 'learn controller assignment'. I then proceed by pushing the button on the midi controller.
    The Parameter is "Learned", but doesn't work as a toggle button: I have to press the button two times for it to work.
    Any Ideas?
    Tibook 867   Mac OS X (10.3.9)  

    fotofono, depending on the kind of result you're after, you may want to consider a sidechain. I'm pasting text from a previous post I did where someone wanted to be able to create a stutter effect (with mute) on a vocal track. It may apply to what you're trying to do.
    Here's how:
    On the vocal track you want to create the stutter effect, insert a noise gate.
    On the noise gate plug-in window, look for the sidechain input (top right).
    Pick 'Bus 32' for example, or a bus that you don't have in the environment window.
    Pick an empty midi track in the arrange window, insert an EXS piano or any other Audio Instrument (something with good attack works best). Assign it's output to Bus 32.
    Since bus 32 is not in the environment window (make sure it isn't), it won't output any sound to the main outs, and you won't hear that Audio Instrument you've just inserted. Nevertheless the audio is still being routed within Logic, and will affect the SideChain of the noise gate, which is what you want to create the stutter.
    Sequence the rhythm for the stutter into the midi track (you won't hear the Audio Instrument, but you should hear the vocal track stuttering to your midi track playing), do any quantizing you want, etc, and the noise gate will follow the notes.
    You can also tweak the Noise Gate of course, to ease the threshold of the stutter, etc.
    Even if it's not what you're after, you may find it's a really useful tool for many kinds of results.
    Regards,
    Luis
    www.logicprocorner.com

Maybe you are looking for

  • IDOC number is not in the list

    Hi, I am creating an inbound delivery using IDOC. The message type is DESADV and basic type is DELVRY01. After I have populated the control and data tables, I processed them using IDOC_WRITE_AND_START_INBOUND. I have generated the IDOC number after e

  • How do I copy files from a seperate hard drive to Bridge

    How do I copy files from a seperate hard drive and paste them to Bridge

  • Ati rage & tv out & tv in

    I have udev & 2.6.10 kernel... and i don;t have change it.. Tell me how I can make tv out and tv in ... to work with my archlinux....

  • How can I validate my warranty with a refurbished iphone?

    On August 28th I visited Miami and I went to the Apple Store to replace my Iphone 4 broken out of warranty with a Refurbished Iphone. The problem is that the refurbished Iphone replacement never worked! I tried to verify my coverage status but it is

  • Call procedure dynamically

    can anyone tell me if it is possible to call aprocedure when the procedure name is held in a form item. ie i have a form item :blocka.proc_name that has a list of all the procedures that the user can run. if the user selects 'proc1' into this item fr