Mute button does not

Hi-

It is a simple button mute to a mp3 player.

I first var sound: Sound

Then I have the function

//mute the current sound
function muteSound ()
{
     if(this.sound.getVolume != 0) this.sound.setVolume(0);
     else this.sound.setVolume(75);
}

Then I install 4 frames in a movieClip, with the label, onRoll, off and offRoll.

Then that under the Actions button

// Mute Button
buttonMute.onRollOver = function()
{
     if(this._currentframe == 1) this.gotoAndStop("onRoll");
     else this.gotoAndStop("offRoll");
}

buttonMute.onRollOut = function()
{
     if(this._currentframe == 2) this.gotoAndStop("off");
     else this.gotoAndStop("on");
}

buttonMute.onRelease = function()
{
     if(this._currentframe == 2)
     {
          this.gotoAndStop("on");
          this._parent.muteSound();
     }
     else if(this._currentframe == 4)
     {
          this.gotoAndStop("on");
          this._parent.muteSound();
     }
     else
     {
          this.gotoAndStop("off");
          this._parent.muteSound();
     }
}

It all works as a graph, mutes sound the first time and the graphics change, but sound restores the sound.

Because I was asked before, here's a copy of the entire file:

http://charlesnewmanpubl.com/player_fa2.zip

I think you need to call the getVolum like that

function muteSound (){     if(this.sound.getVolume() != 0) this.sound.setVolume(0);     else this.sound.setVolume(75);}

Tags: Adobe Animate

Similar Questions

  • x 1 carbon mute button does not

    I just got my x 1 carbon today and had it updated to windows 8, but the mute button does not work or light, does anyone else have this problem?

    Fixed - installed has hotkey from the drivers page.

  • My mute button does not work

    The button does not work everytime I try to put my phone on silent. I turn it down and it will automatically return to the sound, it activates again upward. What can I do?

    Hello Jackie101foever,

    Thank you for using communities Support from Apple!

    As I understand it, you can't silence your iPhone.  I have a suggestion that should help you with this.

    The first thing we want to do is to make sure that you have a current backup of everything on your iPhone.  If you follow this link, you will find instructions on how to make a backup:

    The backup of your iPhone, iPad and iPod touch

    If the silent button moves upward on its own, so you must do this checked by a service representative.  You can find the nearest one by looking here:

    Find locations

    If the button is stay down, but do not silence the iPhone then we want to restore all settings.

    Reset preference files resets all parameters that may be problems. This step will not delete your contacts, photos or personal information. It deletes all your preferences for Wi - Fi, Bluetooth, do not disturb, Notifications, general, sounds, brightness & wallpaper and privacy and removes your Touch ID & password.

    Do you this by clicking on settings > general > reset > reset all settings.

    Once you have done this, restart the iPhone and see if you are able to turn off the sound.

    Have a great day!

  • HP envy 17 J160NR: hp envy 17 J160NR mute button does not turn on

    I have a 17-inch hp envy laptop my work button mute it just used to light up orange when cut more I've had this laptop for a year. It was working fine yesterday but when I went to bed last night hp was an update of copying files and other stuff for this, but when I woke up this morning the button mute wouldn't lite upward when you press. and on my laptop the mute button is f6 and the keyboard is backlit. can anyone please help me out and tell me how to solve this problem? It's really annoying, I need help badly please. It is a portable jump movement.

    Hello

    The driving mute functionality is provided by the audio software package, so most likely, Windows has updated this to a version that does not have this feature.

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp63501-64000/sp63555.exe

    When finished, turn off your WiFi card (or if wired, just unplug the router/access point).

    Then open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver.

    When finished, restart the laptop.

    Let Windows load fully, then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  When this has completed, restart the computer again.

    If your mute led functions now correctly, turn on your wireless adapter (or re - connect the access point / router) and use the utility on the following link to prevent Windows 10 automatically update the IDT audio driver again.

    https://support.Microsoft.com/en-GB/KB/3073930

    Kind regards

    DP - K

  • Satellite P300-1EJ - Mute button does not work

    Hello world

    Press mute on the media panel is no longer functional.
    I have the Satellite P300 1EJ.

    Help, please

    Hello!

    Is - it only the mute button not working or other buttons too?

    Normally you need for these buttons the Toshiba value added package if you are using Vista. I think you should try to reinstall. So to remove the older version, reboot the laptop and install the most recent version that you can download from the Toshiba site:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    Good luck!

    Good bye

  • Mute button does not turn on

    I use a HP envy laptop 4 about three days.  After update everything from windows update and HP, the mute button not more light upward on the keyboard when I cut the sound.  I see she is silent in the taskbar in the corner, but it usually shines orange after it has been muted, and now is no longer.

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp56501-57000/sp56717.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When finished, restart the computer and let Windows load completely.  Open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once done, restart the laptop.

    Kind regards

    DP - K

  • Microphone Mute button does not work - T510

    Simple enough question.  I think I have the latest updates installed software but on my Win7 64 bit T510, all the special keys work except Microphone mute.  Mute speaker and the speaker volume buttons work fine. I'll have to cut my microphone in the recording devices screen in Win7.

    What could stop working Microphone mute button?

    Just noticed this in another thread, worth a try...

    http://forums.Lenovo.com/T5/T400-T500-and-newer-T-series/Win7-T400s-can-not-start-quot-Lenovo-microp...

  • Mute button does not work.

    Original title: Mute button

    I keep my sound muted until I'm ready to watch videos and others. Tried to reactivate as soon as possible and will not activate the sound. I did the test of speaker and he said another device is opened using the speakers, but I closed internet and all the other tabs & said the same thing. Help, please! I use my laptop for school & sometimes need to watch videos of the class. Thank you!

    Hi Misty,

    Have you tried to reboot the system to check the same?

    If not, try to restart the system and check if it helps.

  • HP envy 17 J160NR: mute button does not turn on after update

    I just downloaded and installed the new update of windows 10 anniversery but now my button mute not turn on. It still works it just won't turn on I really need to light.

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp63501-64000/sp63555.exe

    When finished, press and hold the Windows key and press R

    In the run window, type devmgmt.msc and press to enter.

    In Device Manager, expand sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you are finished, download and reinstall the Chipset driver at the following link.

    http://ftp.HP.com/pub/SoftPaq/sp63001-63500/sp63408.exe

    When the reinstallation of Chipset has completed, restart the laptop.

    When windows has reloaded, open your download folder, right click on IDT Installer and select "Run as Administrator" to launch the installation.  When he finished, restart the computer again and let windows to load completely for a few minutes before checking it in.

    Kind regards

    DP - K

  • Mute button does not work on Satellite A300

    Hello!

    I just bought the laptop all that work with the exception of the function key 'mute or Led power' works the first of the six buttons next to the button / stop.

    The other 5 function buttons work, but how do I use the button "Mute"?

    Hello

    This laptop is not really known to me, but some people in the internet have reported that you can change the button settings in the
    Toshiba Assist-> Optimize-> Toshiba button support.

    Please check the settings there.

    Good bye

  • W540 - mute Microphone does not work

    I have a new W540 and microphone mute button does not work correctly. When I press fn + f4. the red LED lights up, the microphone off on appears on the display and volume for the "Microphone" and "External microphone" controls are muted in Windows. However, always capture the audio from audio microphones and it can be recorded on applications like Skype and Audacity.

    Muting manually microhphones through the sound dialog in Windows box has the same effect. The OSD and LED light, but the microphone does not record. From now on, I have found no way to disable the microphone outside the inhibition of sound input in each individual application.

    I just tested this, and I get the same result on my W540. Mute microphone lights and Windows says it's dumb, but he is not actually cut.

  • mute dv4 1225dx windows 7 button does not work after restarting

    Hello world. I will try windows 7 on my pavilion laptop and everything works perfectly except the button mute who does not work (do not put on mute or turn red). I installed the driver sp45073 which is supposed to be the one to W7 64-bit. the curious thing is that it works perfectly once the computer restarts after the installation, but if I restart again, it stops working. If someone could help me that would be great. Thanks in advance,

    Well, I ended up reinstalling windows 7 64 and it works now. It seems that the problem was the installation of the drivers via windows update. I just installed those appearing on the hp Web page and there is no problem so far.

  • Dedicated microphone Lenovo L420 button does not.

    Hi all

    Thank you in advance.

    Model: 7829 AL1

    • Reinstalled Windows 7 x 64 bit. (All the drivers installed)
    • ThinkVantage communications utility installed
    • Shortcut keyboard driver installed.

    Problem:

    All the dedicated as volume keys up/down works with the exception of Thinkvantage button and the microphone mute button.

    Tried the solution.

    Other forms also tried to reinstall the utility hotkeys and inforation. First installation of drivers and software shortcut keys then.

    More information below.

    Two services Lenovo camera Mute service running and starts automatically.

    Second Service Lenovo Microphone mute service does not start. I get the following error in service.

    ---------------------------
    Services
    ---------------------------
    Lenovo Microphone mute service on Local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
    ---------------------------
    Ok
    ---------------------------

    Kindly help me to solve the problem.

    Thank you.

    Hi all

    Please see the duide to solve the problem. I've got it sorted.

    First install the dirvers & all the utility software lenovo (autolock, optimization of reading etc) based on your model number.

    Please keep the following sequence.

    Communication utility

    Power management utility

    Hot Key Utility (pilot for first use and rest all others later)

    Hope this will solve the problem for others, without spending much time to figger it.

    Best regards

    Julie M

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    < re-titled by host >

    Take it to an Apple Store for repair or replacement.

Maybe you are looking for

  • How to use the 6008USB on XP Embedded?

    Hello! I am currently trying to get the "NI USB-6008 OEM" to work on Windows XP Embedded. Since the embedded PC has only limited free disk space, I installed the "NOR-DAQmx base 9.3" package Now the following happens: I connect the NI USB-6008 OEM bo

  • KB2724197 and KB2676562 do not settle on Win XP Pro SP3

    Priority updates of the subject not to settle.  All other updates seem to have no problem.  I've deleted and reinstalled both of these updates, but the result does not change.  In addition, seems unable to download "guided help".

  • Not enough free space of 30 MB for music DB problem.

    Hello I have had my Sansa clip now for 2 days, and I got this problem of "not enough free 30 MB DB music space". I can connect the device to the computer, I tried to reformat, I followed all the instructions in the other threads. I have no. luck what

  • laptop unable to connect to a network it sees.

    It says "Wireless association failed for an unknown reason."  Previously, it would connect then it was on a wired on another network and when off the coast of this configuration, I get the above error message.  When I "try again" ACTIVE Windows Netwo

  • Windows 7 Professional 32-bit and 64 - bit

    I soon to set up a new unit to Dell with a CPU i7, SSD & a good NVIDIA video card and my client has specifically requested that the operating system Windows 7 Professional 32 - bit be installed on it, due to the fact that it will run only older legac