How to select which sound to play?

I'm just getting started using the JavaScript SetVariable in
my web pages to send information to a Flash movie. One thing I'm
stumbling on however is how to specify which sound clip to play. I
have a two layers on my timeline, one with sound A and the other
with sound B. Based on a variable I set in the JavaScript, I'd like
to mute one or play the other, or whatever works to get one to play
and not the other.
Can this be done? If so, how?
Thanks from a Flash newbie,
Beth

you have very limited control over sound that's attached to a
timeline. you could work around that by attaching your sounds to
two different movieclips, but you would do better to use the
actionscript sound class to control your sounds.
in the flash help file check actionscript 2.0 language
reference and check the sound class. you just need to create a
sound object and read about the attachSound() and start() methods.
you can then use an if-statement to determine with sound to
attach to your sound object and solve your problem.

Similar Messages

  • How to select which RFC USERS have been accessed my host ?

    Hi, guru
    how to select which RFC USERS have been accessed my host ?
    or how to record the RFC users's trace ?
    because the auditor wants to know it.
    Best regards,
    Michael

    how to select which RFC USERS have been accessed my host ?
    did you check ST03N->User profile ?
    or how to record the RFC users's trace ?
    Check ST01 for system trace.

  • How do I get sound to play on my Samsung HDTV from my macbook pro?

    I've been trying to figure out how to get sound to play on my TV from my laptop for several days now and was wondering if anyone had any suggestions for a solution to this. I bought an Mini Display Port to HDMI converter (Kanex Iadapt) off Amazon that is supposed to have audio support. I connected it with the HDMI cable to my TV and changed my display settings to mirror and the picture comes up fine but when I tried to change the output in sound settings to my TV my TV didn't even come up as an option. I went out and bought a Y audio cable figuring my laptop may be older than 2010 and needs an additional cable, plugged the audio cable into the same HDMI outputs in the TV and still no sound. I can't think of anything else!

    I have an ancient LG 32" and a Thunderbolt/miniport-HDMI adapter that I bought from monoprice. I go through my Denon receiver through one of the HMDI ports and get sound and video on my TV. This is the one I bought - it carries audio and video and is under $7.
    Could be worth a shot...
    Clinton

  • How do I stop sound from playing when I leave frame?

    I have designed a website for an advertising agency using
    Flash and ActionScript 3. In the portfolio page, I have several TV
    commercials that are available to play. What I need is 1) when the
    user leaves the TV ad page, I want the tv commercial to quit
    playing (right now, it continues even though the user has moved on
    to other pages). and 2) If the user selects a different TV
    commercial without first stopping the original one, the sound for
    both of the them plays at the same time. I am using the flv
    playback component. The video appears to stop, but the sound
    doesn't. My TV commercials are external flv files.
    I have also made a page for radio ads and I just used play,
    pause and stop buttons to control the sound. This page does the
    same thing. The sound continues when you move on to another page in
    the site. My sound files are also all external sound files.
    All of my pages are just individual frames in a main
    timeline. Each page has a frame label.
    If this is not clear, here is the link to my site:
    http://www.hammockads.com
    I would appreciate any help anyone can give me with this. I
    have tried for weeks now, to solve this problem and I just don't
    know enough actionscript or flash to figure it out. I've only been
    working with this for a few months.

    I have my website set up so that the portfolio page occupies
    one frame of my timeline. Inside that frame, I have a movie clip
    which contains the additional pages of the portfolio section. The
    additional pages show examples of the print ads, radio ads, tv ads,
    web sites that my client has created. Each of these additional
    pages is also one frame of the timeline (this time inside the
    portfolio movie clip). When the user clicks a link in the website,
    it just takes them to another frame on my timeline.
    The entire website is one swf file and each of the pages is
    located on one frame of the timeline (either on the main timeline
    or inside a movie clip timeline.)
    In the tv ads page, I have a button for each of the tv
    commercials. When the user selects a specific commercial, then the
    actionscript calls that particular ad from an external flv file.
    The problem is that when the user clicks another button (to view
    another ad or chooses to go to another page in the website (which
    involves leaving the current frame in the timeline) the video or
    radio ad doesn't automatically stop playing.
    I can't really post code, because I'm not sure what code to
    post. The TV ads are currently set up using the FLV playback
    feature. The radio ads are set up with play, stop, pause and volume
    control buttons. When a user here selects a new radio ad, the one
    currently playing stops and the new one starts, but when the user
    chooses to go to another page without first stopping the ad from
    playing, it continues to play.
    On the TV ads page, nothing is really working except that the
    ad plays and stops when it comes to the end. I'm thinking that I
    may need to go back and re-code the TV ads to play without using
    the flv playback option.
    Any thoughts? I hope this is a little bit clearer.

  • How to get the sound to play in a widget through an LMS?

    Mac operating systerm
    Captivate 6
    I have files that are aggregated. My reporting is set to SCORM 1.2. I know my project is not SCORM compliant. My project plays and transitions when in the LMS however when I get to the widget for my history sections no sound is produced. I have two widgets that do not play sound. Is there something I can do to make the sound play? I've inserted the sound into the widgets as normal.
    Please any advice would be appreciated.
    Thanks,
    Maree

    okay I have version 6.02.325
    Dumb question but I have to ask it...If the frame is paused how do I go in and un-pause it?Also, I may have caused the pause because I inserted a "button" on the slide so that the slide would not advance automatically. As you well know inserting a button and adding it to the top of your timeline making it clear in color sets it up as a pause button. Does that mean if I take that button out my audio will work? And if that makes my audio work will my slide then automatically advance to the next slide?
    So many questions....

  • How to select which folder my photo's sync to on my PC from the camera roll

    When I sync my Iphone the pictures on my CAMERA ROLL sync to a folder in MY PICTURES on my PC. How do I change which folder on my PC that the pictures save to.

    http://support.apple.com/kb/HT4083
    This would be done from your computer, as it would with any digital camera.

  • How to select which Network library is used

    Hello,
    our SQL Server support, Named Pipes and TCP/IP as Network Library.
    Now we need to know which Client Use which Library to connect the Server.
    Is there a possible way to select such information over T-SQL?
    greetings
    Henrik

    Hello Henrik,
    you can get the Information from System view sys.dm_exec_Connections:
    SELECT EC.net_transport, EC.protocol_type, ES.login_name
    FROM [sys].[dm_exec_connections] AS EC
    INNER JOIN [sys].[dm_exec_sessions] AS ES
    ON EC.session_id = ES.session_id
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to select which cloud service to save the contact everytime I am adding a new contact

    What I really love about android is that you can choose which account to save contacts every time you are adding a new contact right in the "New Contact" form.
    Since I changed my phone from beloved nexus 5 to iPhone 5S (Just kidding) I could not this feature in iPhone contact. It is only possible to choose your default contact service from setting, but what I need is that AS I am adding new contact I get to change the destination for this contact if I want.
    Thanks Guys

    You can set up groups for your contacts but you need to log in to www.icloud.com on your computer and do it in settings there.  Other than that I am not aware of any way to achieve what you want

  • How to select which language version of Windows to use?

    In Finland Toshiba Satellite L670-128 comes with pre-installed Windows 7 Home Premium and the user should be able to choose between English, Swedish, Finnish, Norwegian and Danish versions of Windows. However, when I started the computer for the very first time, it started to make some final installations and setups in Swedish. It newer asked me what language version of Windows I would like to use, so now I am having Swedish Windows in my computer. It is however English version of Windows that I would like to use, so how can I change the operation system language?

    " Has the system really lost all the other language options from the harddrive while the first installation?". To the best of my knowledge when you first start a "pre-installed win 7" system there is a scroll box that sets the language and certainly for Home Premium it states that this choice cannot be changed.
    I'm confused as to the solution you are looking for. As far as I can see your options are the free software that claims it can change the installed language or go for a re-install and hope that fixes it. I'd ensure I was ready to do a reinstall and try Vistalizator first to see if it worked.

  • Select audio device to play back sound

    flash media server ,provide property Microphone.names that
    retrieves an array of strings reflecting the names of all available
    sound capture devices.
    is there is any property that detect output device attached
    to system so i can select which one to play back sound.
    for example:-
    i need to play back mp3 file in flash.
    but i have more one output device installed in my pc.
    the question is:-
    is there is any way for falsh to list all (or detects) audio
    output device installed in my pc then let me pick one of them to
    play back sound by selected output device?
    thanks ...........plz don't late to replay me

    This is a a delayed response to this discussion but I thought I would share my problem with this.
    I have a USB audio interface, which I have configured as the default sound device on my iMac (OSX Lion). This works well in all applications, except Flash.
    I have the device configured at quite a high bit rate.
    Flash doesn't like this - it makes very strange noises. The only work around I have found is to disable the sound interface when I am working in Flash, and use the built in speakers on my iMac.
    It works, but I'm the kind of guy that likes things to just work =)
    e.g. if iTunes can play mp3s through my sound interface, why can't Flash?
    To be honest I think Adobe need to do a lot of work on the audio side of things with Flash. Not just playback - something a bit more flexible like Premier would be cool. Flash isn't dead yet. Come on Adobe!
    A lot of the work I am doing at the moment requires building animation to a pre-recorded audio file.

  • HT3576 how to change notifications sounds of differient apps

    how do you change notification sounds of differnt apps

    The short answer: you don't.
    The long answer: iOS provides settings for the built-in apps and facilities of the phone, but it leaves the issue of notification sounds for other applications to the applications themselves. An application is permitted to either use the sound specified for a built-in (as defined in Settings > Sounds), or their tone, which is a sound stored in the application bundle itself. Most applications elect to use their own sounds and provide no mechanism to modify the sound used. iOS does not provide a mechanism to override how applications choose to handle their notifications (and which sounds to play).

  • Can't get sound to play using audio line in

    I am trying to play audio from my iPhone by connecting mini plug cable to the headphone jack and the audio line-in mini plug.  The input level indicator in System Preferences > Sound is showing that audio is playing but I don't hear sound.  I do have sound playing through my Mac Pro with iTunes, steaming audio/video, etc., so I know it works.  Any ideas how I can get sound to play audibly using line-in?

    Another option not involving any additional software - see:
    http://www.insanelymac.com/forum/topic/87046-play-line-in-through-macbook-pro-in ternal-speakers/
    Just came across this problem myself (10.8) and that solution works great - just open Quicktime, there under File: choose a "new audio recording". In the upcoming controller switch up the volume.
    Weard that it works this way but nowhere else in the sound System Control panels ...

  • Selecting the sound output device

    Hi, is there any way to select which sound output device to use from an Adobe AIR application? If there is, I can't seem to find it (using either the manual, the forums or Google).
    Any help will be greatly appreciated.
    Thanks,
    Michiel

    A new Idea has been added to the Adobe Idea's website for this discussion.  Please vote if you are interested and would find this valuable!
    Select output device for audio

  • How do you manage sound profiles?

    Is there anyway to manage sound profiles? It seems like I have to manually turn each sound setting off if I don't want to be alerted at night. I still want rings to come through. Is there not a way to set up profiles so I can set all the sounds according to the profile?

    From what I can tell the iPhone (ios 5x) does not have a feature equivalent to the Blackberry "Sound Profile".  Nor do I see an app that will provide this.
    For example, on the Blackberry I could set a sound profile called "Loud" which would have the individual ringtones, vibrate and volume settings I want for when I'm in a noisy place.  I could have another setting called "Quiet" with the settings I want in a quiet place, a setting for "Silent" etc.  Then I  could simply select which Sound Profile I want to be in effect. Very useful, very convenient, very easy to use.
    The iPhone has the ability to set global sound parameters (volume, alert sound, ring tone) BUT does not have the ability to save sets of global sound parameters for instant retrieval and use by the user. This is, in my view, a shortcoming.  Not a show-stopper, but a shortcoming.
    Not to compare Blackberry devices to iPhones, but the "sound Profile" feature in the Blackberry is very useful and I wish Apple would provide ths feature and urge them to do so.

  • How do I select which bluetooth speakers to play out of? My iPod connects to both kitchen and living room speakers. My old iPod had a selection icon on the now playing screen, but my new one doesn't.

    Hi,
    Our setup
    A new iPod Touch 5 with iOS 8.3.
    Living room speakers that use a Logitech Bluetooth Audio Adapter.
    Kitchen speakers that use an AmazonBasics Bluetooth 4.0 Audio Receiver.
    The iPod connects to both but always wants to play to the kitchen. To play in the living room, we have to unplug the power to the kitchen speakers. Bluetooth settings screen doesn't let you select between Bluetooth connections. All I seem to be able to do is forget the connection.
    We also have an old iPod Touch (not sure of the generation, but it has iOS 6.1.6). On that one, there is a little icon on the now playing screen that would open a little pull-down menu to let you select which Bluetooth connection to use for playing audio.
    I don't see the "select output" icon on the new now playing screen
    Jimmy
    PS the iPod seems very aggressive in connecting. I hear the living room speakers activate when my wife gets out of the car in the driveway. Then as she comes into the living room, the sound switches to the kitchen.

    Thanks, this was the clue I needed to figure it out.
    From Settings you can pull up Control Center.
    In Control Center you can enable "Access from within Apps" (also "Access from Lockscreen")
    Now when I'm playing music, I can swipe up from the bottom and a little control center window slides up. Neat - this is new since my old iPod. On this window, the name of the current Bluetooth connection appears. Tap on that, and a list of connected Bluetooth items appears. I just tap on the one I want to connect to and I am now playing through the speakers I want.
    Jimmy

Maybe you are looking for

  • How should I write my emails to the forums?

    When you write emails to the forums to start or respond to threads, you need to watch out for some potential problems in your message content. Do not use square brackets in your message or subject. Square brackets are interpreted as command codes and

  • IPhoto 09 face recognition

    I would like to know if the iPhoto 09 face recognition feature is ON by default and can't be switched off even if we feel we don't need it. The reason I ask is that, after a year of Leopard, I am really exasperated at this Spotlight regularly monopol

  • Cancel Payment Run

    We accidentally generated a payment run for all vendors instead of the select few and did not realize it until the complete run was done.  The actual checks have not been cut yet and the file has not been sent to the bank.  We really don't want the c

  • Kereros error in event viewer logs.

    Hi All, We have configure Vintella SSO on XI3.1 previously and for some reasons now we have changed to NTLM SSO but still we are observing kerberos error in event viewer logs. Error1 : Kerberos error was received on log on session , client time and s

  • Apple Configurator assistance - where to start?

    We deploy iPads on a slow but regular basis to client's to use as home automation controllers in their homes.  There are 1-4 apps needed so we lock everything else out, genreally without Guided Access.  I have very specific thoughts on what I hope Ap