How to choose sound to play?

I'm just starting using the JavaScript SetVariable in my web pages to send information to a Flash animation. One thing that I'm stumbling, however, is how to specify which audio clip to play. I have a two layers on my calendar, with its one and the other with his b. based on a variable I set in the JavaScript, I want to put a mute or play, or anything that works to get one to play and not the other.

Is this possible? If so, how?

Thanks from a newbie in Flash,
Beth

you have very limited control over its seal to a timeline. you could work around this by attaching your sounds to two different movieclips, but you'd better to use the actionscript sound class to control your sounds.

in the help file for the language reference flash actionscript 2.0 to check and check the class sound. you just need to create a sound object and discover the attachSound() and start() methods.

You can then use an if statement to determine sound to attach to your sound object and solve your problem.

Tags: Adobe Animate

Similar Questions

  • How to set sound to play from the speakers?

    original title; Sound on laptop

    A piece of the headphone jack is stuck inside my laptop, which means that there is no sound. I tried several times to get out of the room, but it is very small and is totally stuck... Is there a way that I can change the sound so I can hear directly from the laptop instead of sound is 'play' in the room by the helmet?

    N °

    Normally, there is a micro switch associated with the sicket phones that once you plug the laptop speakers turn off.
    Better to take the machine to a pro out little said.
    See you soon,.
    Jerry
  • How to choose what program plays what, where sound?

    Hi all

    First of all, I don't know if this is the right topic, but I couldn't find other technical subjects or something similar.
    Runing windows 8 Pro and I had also a headset (USB connected) and audio (HDMI connected), but I can't select what program to play where the sound. Now, I prefer to have all the music and movies played on systems of sound and communications such as Skype, Ventrilo and Teamspeak on the helmet, which is.
    But when I play the games I'd allso favorite play the sound of some of the games on the helmet, but often games like the Sims 3 has played on the sound system.
    Is there a way to fight against this or is there some kind of software that will allow me to select what's playing where?
    Lawa Hi,

    By design, we can choose and define the different applications to play sound through the headphones and speakers of the HDMI.
     
    You can search for a third-party application that supports this feature by using your favorite search engine.
     
    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps. If you need more assistance or information on this question, reply to this post. I'll be happy to help you.

  • How to make sound to play through my headphones and not my TV when you use an HDMI cable to extend my desktop?

    Often, I connect my laptop to my TV to extend my desktop and find work more quickly. Today, I wanted to listen to music then I worked, but did not want to disturb others in the House with the sound so I plugged my headphones on my laptop but the sound plays through television. How can I get it to play through my headphones only?

    I do not use HDMI but audio HDMI runs your graphics instead of the audio chip

    the laptop, so I think that you can turn off the HDMI audio in your graphics cards

    The control panel settings.

    -If not, you should be able to disable the HDMI audio via Device Manager.

    The HDMI audio will probably be known as your graphics (Nvidia, AMD or Intel).

    [Type Device Manager in the search bar on the Start Menu and select - sound, video and game controllers.] R / click on the appropriate audio device and select disable. ]

    Or - connect your headphones to the TV should turn off the sound from the speakers.

    You can purchase an extension for headphones, if necessary.

  • How to make sound to play on my TV via HDMI?

    Original title: soun after Pentecost connecting laptop tv hdmi cable

    OK I connect my laptop to the tv by hdmi cabel and playd amove sound and everything was ok. now picure is ok, but is played soun speakers for notebook computer thro what to do to get a soun TV a speakers that I have to change some stteings?

    Start > Control Panel > sounds > right click on the "digital output device" and set as the default value.

    Does that help?

    Browse the discussions here: -.

    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/28691f82-610e-4F01-be2f-b2ced7cca645/

    S.Sengupta Media Center MVP

  • How can I get iPhone play sound of favorite when text DND?

    Hello

    How can I get iPhone play sound of favorite when text DND?

    It plays the ringtone for a call when DND of a favorite but not identified a favorite texts me

    Thanks in advance

    You do not have. Notifications for all the messages are deleted when DND is turned on.

  • every time that I connect to his screen name appears with mine and I have to choose one. How to take sound?

    My son used my pc and every time that I connect to his screen name appears with mine and I have to choose one.  How to take sound?

    Hello

    What version of Windows?
    You ask about your Windows login or a Web site?

    If you ask about Windows logon, it should work with Vista or Windows 7...

    Right click on the desktop computer > manage. In the Management Console, click on system tools > local users and groups > users, select the account else > right click > properties > OK your way out and disable the account. You will need to reactivate the account for this account to use in the future.

    Don

  • I accidentally turned off the sound to play videos online. How can I solve this problem

    I accidentally turned off the sound to play videos online. How can I fix it.iHAVE YEAR ASUS WITH WINDOWS VISTA

    Hello

    IE - Tools - Multimedia Internet Options - Advanced tab - check sounds in Web pages
    APPLY / OK - close and restart IE.

    If it has been verified - uncheck the box - APPLY / OK - close and restart IE - then go back and re-check.
    APPLY / OK - close and restart IE.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How can I add a .wav to a page so the sound is played when the page loads?

    Can someone tell me how to add sound to a page? I have a .wav file, I would like to use and play during the loading of the page.

    Thank you!

    You can integrate it as a media object. Quick web search has this:

    Integrate Audio and video in HTML 5 Pages - Webmonkey

    It is not the most brilliant ideas, however. This stuff tends to be massively annoying and put off users rather than attract them. as a minor, convert the file at least in a file compressed in MP3 or OGG to reduce the use of bandwidth and of the size of the files.

    Mylenium

  • I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1. Still no sound.

    I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1, but still no sound in clips. Not even on the old files that are used to work.

    Bfun

    What operating system is running your first items 12/12.1? Can we assume that this audio reads OK

    on the same computer when you use a computer independent of Premiere Elements drive?

    What are the properties of these clips that have worked before, but don't know regarding sound

    For now, I will assume that you are working on Windows 7, 8 or 8.1 64bits.

    Have you checked the settings change preferences/Menu/Audio ASIO hardware? You have all 3rd party audio devices integrated in your IT environment?

    Please delete the Adobe Premiere elements Prefs file and, if it does not, then all 12.0 folder in which the Adobe Premiere elements Prefs file exists. Is the path to 64-bit Windows 7, 8 or 8.1

    Local disk C

    Users

    Owner

    AppData

    Roaming

    Adobe

    First Elements

    12.0

    and in the 12.0 folder, is the file Adobe Premiere elements Prefs that you delete. If this does not work, then delete all 12.0 the folder in which the Adobe Premiere elements Prefs file exists. Make sure that you work with the Option "Show hidden files, folders and drives" of the current folder so that you can see the full quoted path.

    You have the installation files or the installation disc with the serial number purchased in case we need to use to uninstall/reinstall?

    We will follow your track to the top.

    RTA

  • When you export (share) a project, how to choose the thumbnail of the freeze frame which restores the clip?

    I just shared (exported) a project that is a simple take a clip for a friend who has downloaded on its website. The problem is that, when the video ends by playing on his site, he returned to a freeze frame that seems completely random and is not the image I want. How to choose the exact image that the video will return as "thumbnail by default?"

    Thank you

    Kevin

    Cannot set lla at the FCC. Many layout site Web apps will allow you to set the poster frame for the video files.

  • by turning on the computer the sound wav plays always the value by default even if I changed my diet and renamed it

    When you turn on the computer default wav sound still plays even if I changed the system and renamed it

    Hello

    1. which version of the windows operating system is installed in the computer?

    2. have you made any changes to the computer?

    Method 1:

    If you use windows vista and windows 7, I suggest you perform the clean boot and check.

    Place the computer in a clean boot state, then check if it helps. You can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

    Note: After troubleshooting, make sure the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I also suggest you to see link and check.

    Change the sounds of the computer

    http://Windows.Microsoft.com/en-us/Windows7/change-computer-sounds

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-computer-sounds

  • No sound when playing DVDs or videos

    I have loaded my videos on my computer, went to read them to then find out that the videos played without sound.  I also tried playing a dvd and there is no sound with it, as well.  I use the latest version of Windows Media Player and have run all of the programs problem-solving and everything seems to work properly, with respect to the hardware/software.   Help, please!

    Hello

    ·        Are you able to hear other sounds of the system on the system?

    ·        What are the steps that you did for your problem?

    ·        Do you have an error message when you try to play videos on the system?

    ·        What application you use to play the videos?

    ·        Remember to make changes to the system?

    I suggest you to check if you are able to play these videos on another computer without any problem or not.

    Check if the system volume is not muted.

    Apart from that, I suggest following the steps mentioned in the article below and check if the problem persists.

    How to troubleshoot sound problems in Windows XP

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

    I also suggest you to uninstall the drivers for sound card on the system and then download the drivers from the manufacturer of the system then install again and see if the problem is resolved.

    How to manage devices in Windows XP

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

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • How to fix sound coming speakers and headphones at the same time?

    My computer old enough, I'll tell you that. I bought it on ebay with Windows XP pre-installed, and I uninstalled it instantly to I can have the pleasure of installing Windows Me (because I'm a little strange) with an installation disc, I had to hang out. Everything worked fine, until one day I decided to install Windows NT 4.0 and that pretty well done the sound somehow. To resolve this problem when I reinstalled XP, I found a driver that worked perfectly. With XP, I've had no problem with the sound since I installed the driver; the sound comes through the headset when it is plugged and through the speakers when my headphones are plugged into.

    Now, here's the problem. I installed Windows 7 Home Premium last night, as it came with another computer that broke some time ago. It works perfectly, just a little slow because my computer is old. Of course, I expect to have to install the audio driver again, as I formatted my hard drive before installing 7. So I downloaded the driver from the same place, as I always do, site Web of Realtek. After installation, the sound works fine - but it comes out through the speakers and the headphones at the same time.
    I tried to plug my headphones into the Jack located on the front of the computer and back, and it's still having the same problem. He has nothing else connected to the computer but the monitor, keyboard, mouse and wifi adapter.
    Windows 7 is the only OS by far that has had this problem on this computer. Strangely, on the computer on which he came with, I have no trouble. I plugged it right in there and badabing badaboom, everything was perfect.
    So I don't understand why it does not work on this computer. If necessary, my audio device in the sound options is Realtek AC 97 Audio.
    Any help would be appreciated!
    Hello

     
    Thank you to ask a query in a Microsoft Community.
     
    I understand that you have problems with the audio devices with the Windows 7 operating system.
     
    I have a few suggestions that you can try to solve the problem.
     
    Please refer to the suggestion of Mouneshwar R replied on August 28, 2010.
     
    How to stop sound play two headphones and speakers
     
    Hope this helps, if not, please respond to this line, and we will be happy to help you again.
     
    Thank you
  • Cannot get the sound to play when the pre-recorded videos on Webex access

    Original title: audio playback

    I have a HP Pavilion pc with windows 7. I can't get the sound to play when the pre-recorded videos on Webex access.  I checked all the settings and the sound works well when listening to music or playing games. There is a sound icon above the keyboard that looks like it is not if this could be the problem? If yes how to do it turn on?

    Hi Robin,

    1. it worked before?

    2. are you aware of changes to the computer before the show?

    3. you use WebEx with product Cisco meeting place or alone?

    4. how to access pre-recorded videos on WebEx?

    Because the sound works properly with another application, it seems that you may need to change some settings in WebEx. You can contact WebEx support for assistance:

    https://support.WebEx.com/MyAccountWeb/supporthome.do

    Hope this information helps.

Maybe you are looking for

  • Stop randomly a10

    This problem started some time ago, I thought I had fixed it by replacing the hard drive but apparently not. My just a10 closes down, apparently at random, although it might have something to do with the fans, as often happens when im doing editing a

  • New iPhone's fake name

    Receive our first iPhone for Susan, my wife. Set up with our common Apple ID, that I created a long time ago. Now, I just got a message that my ID is used to connect to "Robert IPhone"! Can't Apple iCloud ecosystem to call that "Susan IPhone" iPhone?

  • Find the source of the massive compilation errors

    Hi all I am trying to determine the source of the errors on a generation of RT and therefore a massive to remove compilation live broken and unused running the project is important enough, so the output from compilation of mass is large.  One thing I

  • Error code: 646 (cannot install KB2431831)

    I can't install the update from microsoft works 9 KB2431831 and im using microsoft security essentials. I get error code 0646 everytime and each of the other updates, it will not install and it says it's an update important use this update it works h

  • Messages received that he had problems with Windows Live. I am not able to send emails in Hotmail.

    original title: hotmail Today we had the messages he had problems for windows live. We are not able to pass anything on hotmail and computer he is slow