Sound On / Off

The book of the training I only shows how Sound On and Off action script 3.0, and I need 2.0.  I don't remember how to do it.  Can someone help me please?  If this can help, the button is named On_btn, Off button is named Off_btn and the audio file is named SLide45.wav.

Search the Sound class in the help (F1) of Flash files - but essentially:

var sound: Sound = new Sound();

sound.attachSound ('SLide45.wav');

On_btn.onPress = function() {sound.start (;})

Off_btn.onPress = function() {sound.stop (;})

Tags: Adobe Animate

Similar Questions

  • When listening to the music of Grooveshark, the sound turns off after a minute.

    When listening to the music of Grooveshark, the sound turns off after a minute.  Must press the key or the mouse to re-activate.  I turned off the screen saver.  Cut off.  Grooveshark said that they have no control over that, but the operating system.  Can someone help me with this?

    Hello

    Try the following steps.

    Method 1:

    Sometimes a Web site you visit doesn't look like you expect it. Images may not appear, menus may be out of place, and text boxes may be blurred together. This can be caused by a compatibility problem between Internet Explorer and the site that you are. When a site is not compatible with Internet Explorer, you'll see the compatibility view button in the address bar. You can activate only display Internet Explorer compatibility for the office.

    Use compatibility mode in Internet Explorer:

    http://Windows.Microsoft.com/en-in/Internet-Explorer/use-compatibility-view#IE=IE-10

    Method 2:

    I would say to change the mode of Internet Explorer 9 browser.

    Steps to follow:

    a. open Internet Explorer, press the F12 function key.

    (b) in the part of developers, click browser mode and click on Internet Explorer 9.

    If the Web site uses flash player, try to uninstall and reinstall and check if it helps.

    It will be useful.

  • Button Sound on / off

    Hello

    Am having difficulties making the sound switch to work.
    This is the case...
    I have created a special layer for the background music and named MUSIC. I also use a buttons pre-made for on and off positions.
    While the music plays, the off button is pushed on the page.
    What should I do next?

    Thax infront.

    Kind regards
    Andrej

    Paste this framework where to touch you

    globalvolume = new Sound();

    Add this button you

    on (release) {}
    If (globalvolume.getVolume () is 100)
    {
    globalvolume.setVolume (0)
    }
    of other globalvolume.setVolume (100)
    }

  • Sound turns off when loggin returns in

    Whenever my MacBook disconnects and sign in, the icon of audio greys out. I have to remove and reinsert the rope at the front he back on the sound back. Any ideas what is happening?

    Try a reset of the NVRAM:

    https://support.Apple.com/en-us/HT204063

    Ciao.

  • Satellite A100 - sound turns off randomly

    OK, it was my fault. I lent my laptop to one of my students who tried to load a software to read a FLV file.
    Since then, I had a lot of problems with my sound.

    The sound would work, but when the volume is too high or often at random - the sound would cut out them and stop them.
    The sound level meter shows that sound is working.
    Mixer indicates that the driver is working.
    But I do not hear anything from the speakers.
    Only when I stop and restart the sound coming back.

    I downloaded the sound driver Toshiba Real Tek recommended, but this has not solved the problem.
    I completely rebooted Vista and all my software, but this has not solved the problem.

    I have a Satellite A100 PSAANC WA07
    Microsoft Windows Vista Home Premium SP1
    BIOS Version 6.00
    RealTek Audio driver 6.0.1.5326

    Any suggestions would be greatly appreciated.

    Hello

    It s really strange that your problem persists after that you got the laptop.

    What you could do is visit the site Web of Realtek and could attempt to reinstall the audio driver directly from Realtek page.
    Before installing the new version, he recommended to remove the old driver sound system.

    Welcome them

  • Satellite L650-12 q - Sound shifted off the coast to the left

    Yesterday bought a Satellite L650-12 q. I'm happy but I listen to a lot of music on my laptop with headphones. I noticed that the sound is panned slightly to the left, rather than spread evenly across left and right side of my helmet. It is through several types of music - my mp3s, youtube clips, etc. The only thing that was really 'central' is a track that is practically mono (if not actually mono). I listened to the same track on my old laptop on my mp3 player (with the headphones even) and there is certainly a change in the left earpiece.

    I know he has no problem with the headphones themselves, and I'm discount a questionable connection - so could be how the sound is processed through the helmet (through the speakers on the laptop, the sound seems to be evenly spread.) and if this is the case, what can I do about it?

    Any thoughts?

    Thank you
    Steve

    Hi Steve,.

    All first that it would be interesting to know if you can see this strange behavior on the internal speakers or only if you have connected headphones.

    There are several reasons for this dysfunction:
    -Wrong settings of the sound (-online check sound settings)
    -Sound driver works does not properly (-online driver sound Update)
    -Question OS and/or driver (=> reinstall Windows using recovery of HARD drive)
    -Headphone output port is bad (-online must be checked by a technician portable).

  • My Wave keeps sound turns off. Why this is happening and how it stop?

    As in the cursor lies down at the bottom, effectively turning the sound on my computer!

    Hello

    1. have you done any change in software on the computer lately?
    2. What is the brand and the model number of the sound card?

    If the problem persists, follow the steps listed in the article below and check.
    How to troubleshoot sound problems in Windows XP
    http://support.Microsoft.com/kb/307918
    Note: You can visit the website of the manufacturer of the computer to get the latest drivers for Windows XP and install it.

    I hope this helps.

  • Sound cut off.

    Hey. I am owner of a G6 Pavilion (I think it's the 1325ae) I got it for about four months, give or take. About two days ago, I opened my application of Calibre (books) and my Itunes just stopped playing. I initially thought that maybe it was cause of not letting you listen to music when you read gauge (presence at the time), but then I checked all applications sound input (VLC, itunes, Windows media, Mozilla, Chrome) and nothing works. I checked the devices and even if the sound comes not through it does not say that it works very well. When I put the headphones in the sound works. I tried a lot of things like trying to reinstall the audio device and restore my laptop but nothing worked. Any help would be apprieciated.

    Windows 7 64-bit operating system

    Hello

    You have a few options as I see it.

    First check if the speaker unit icon is not cut.

    Go into Device Manager and uninstall the sound driver and restart and unit automatically installs the driver.

    Try to run the system restore to the date where the unit was working fine.

    Try to update the driver from hp.com for Audio & Bios site.

  • Receives a box of generic Win 32 error and the sound is off

    Original title: generic Win 32

    I have the latest version of XP sp3. Recently, for seemingly no reason at all, I get a generic error Win 32, my sound card is disabled, and any program, regardless of whether a site like youtube, or a media player such as Windows Media Player will continue to function, but if I change songs or go to another site etc there is not its what so ever.

    My attempts of difficulty not going from site to site and through many blogs, I had no chance.

    -Restart - (allows his work for about 10 minutes then it dies)

    -Tried to repair the operating system via the sfc/scannow command prompt (there is nothing)

    -Ran varies according to program viruses and adware, spybot, avg, windows defender and combofix (Nothing)

    -Created a new profile with administrator privileges (Nothing)

    -Ran all previous scans in safe mode with and without network (Nothing)

    -Download the new drivers from Realtek AC' 97 sound card (Nothing)

    -Uninstalled and enabled the audio driver via My Computer-Properties-Hardware (nothing)

    -Tried reloading sp3 (Nothing)

    -Would like to restore an old save point through the restoration of the system, but after the error for some reason magic all my backup saves went somewhere

    IT IS JUST A PIECE OF MESS.

    Any suggestions would be helpful.

    Hi Mehatewindows,

    You can first check the event viewer when you restart the computer and before closing.

    Check out the link:

    Procedure to view and manage event logs in Event Viewer in Windows XP

    http://support.Microsoft.com/kb/308427

    Method 1:

    You can remove any external devices connected, especially HP connected devices that remove and check what is happening.

    If this solves the problem, then add back devices at a time until you discover the piece of hardware causing the issue. Then get any drivers\software update for the device.

    Method 2:

    You can also see in clean boot, if the problem occurs.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After trying to clean boot for your problem, you can follow the steps to configure Windows XP to start normally.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Sound goes off when a game is open.

    Any time I open World of Warcraft or League of Legends, the sound goes out on my Presario F700 Compaq. IF I have music or ventrillo running in the background that goes out. I spoke with another player of World of Warcraft and they have the same problems and we all run Windows Vista. After that I have to restart or restart the sound works fine, but at any time if I open these programs simply sound cuts and forces me to restart. Any ideas? And yes I updated my sound cards and other from the website of the manufacturer.

    Hello

    Make sure you have the latest drivers, but I suspect that these are questions that need to be
    addressed by the authors of the game so I would check with their respective support options.

    -----------------------------------

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ------------------------------------------------

    Control Panel - device - SOUNDS - look for HD Audio Manager - Mine said RealTek High
    Audio definition (this is an example and you can have an other name/maker).

    Make sure you write down the description and model double click top - tab drivers - write version.
    Now click on update drivers who cannot do anything as long as MS is far behind the certification of drivers.
    Then CLICK RIGHT on it and UNINSTALL - REBOOT - this will rebuild the driver stack.

    1 site of the manufacturer of the system and look for the latest driver download - SAVE - spend to do a right-click on
    and RUN AS ADMIN (this is your rescue.) REBOOT after each installation of driver.

    NOTE: Sound drivers often of restoration in order to check the version after installation and the
    reboot to see if the version you have installed is there, otherwise repeat the installation - restart
    until it is. It may take several tries depending on the recommitments how much he makes.

    Then do the same for the site of the manufacturer of the device.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How do I get more obvious VISUAL notification or mottling of low/critical battery alert when sound is off

    Is it possible to get a MUCH more important Visual pop - up to warn me when the battery is low/criticism?

    I used to work my sound, so even the most heinous alert sound would not help. I don't know if a notification above the battery icon symbol appears or if I somehow just don't notice it. (The size of the icons of the screen is already big enough.)

    I put in order to put into hibernation, but I would still prefer to be alerted to avoid these hassles.
    Thanks for the tips.

    Hello

    Here are a couple of good utilities - I use the free versions - these offer special notifications in addition to visuals.

    Battery bars
    http://osirisdevelopment.com/BatteryBar/index.html

    Battery saver
    http://www.codeplex.com/vistabattery

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Video playback in the media player in windows (Vista) is perfect. But when I create a dvd in Windows DVD Maker and read the dvd, the sound is off by a fraction of a second on the dvd. Is this a setting problem?

    After burning a dvd, the audio is a fraction of a second offshore on playback of dvd-video.

    Hello

    I suggest you to refer to this link and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-creating-a-DVD-video-using-Windows-DVD-Maker

    Check if that helps.

  • How to turn off the sound recording on a Camileo H20?

    I just got a new VCR Camileo H20. Directly from the box.

    I use it for video road races to complement the photographs that I take with my Nikon digital camera.

    I am really satisfied with the short video clips that I record, whether they are clear and sharp (fingers crossed). They are very well received by the riders.

    * http://www.youtube.com/watch?v=_bNCKCKafCw *.

    The only problem I have is that I would like to turn the microphone off. Supporters cry comments that are usually fairly light, but recently one or two went over the top with comments derogatory offence.

    I know I can turn off the sound in the video editing software that I use, but as I said, I would like to turn the microphone off.

    I do not understand why, when I put the * sound * to * Off * in the Menu it still records the sound.

    Any help on this would be really appreciated.

    Thank you.

    > I do not understand why, when I put the sound on Off the menu it still sound recordings.

    I m H20 not owner but I have a Camielo: 30. But the two are very similar, the sound-> off the coast of the option that you can find in the menu does not sound recording via microphone, but the sound that appears by pressing the buttons by navigating through the menu.

    If you can not turn off the sound while you record a video.

  • Turn off ignition sound on Slate 7 extreme

    I have a Tablet slate extreme 7 ". You turn off the clicking it makes when I touch the screen. It is not good for the meetings.

    MDC

    Hello and welcome to the HP support community!

    You can try one of the following:

    -Go to settings App/sounds/Touch sounds.  Uncheck the box.

    -Press and hold the Power button until a Menu appears with "Silent Mode" as an offering.  Select it to switch the muted.

    -Use your Volume button to activate the sound completely off (mute) function before entering the meeting!

    WyreNut

  • Configure firefox sound again peripheral audio default - eccentric behavior windows 8

    My machine 64bits Win8 will direct the sound to the default speakers output, but when I try to turn on/off the sound at a different devices, as for example 'headphones' sound turns off. I use the area of notification icons on my PC to select the audio output device that works acceptably in other browsers.

    Except that I noticed at least once on a TED talk video was that if the sound/clip was loaded from the URL directly instead of as embedded in a Web page, the native audio device to the operating system selector works fine.

    I think that you will need to close and restart Firefox after you change the audio device by default to make Firefox pick up the change. Otherwise it can not work properly, especially when a media (HTML5) drive is used and not a plugin.

Maybe you are looking for