Controlling Sound Within Buttons

I have just recently purchased Adobe Flash CS5 and have read through the entire "Classroom In A Book" for Adobe Flash CS4 Professional.  However, the book never went into much detail into what I am trying to do.
I'm creating a website for me and my fiance because we have formed a classical guitar and flute duo and want to exhibit some of our recordings.  I have the buttons for the recordings created with their corresponding sound file.  However, I cannot figure out how to stop the file when I click on another button recording; if I click all buttons, all sound files just keep playing simultaneously.
Any advice would be greatly appreciated!!
Thanks Everyone!

Thanks for your response kglad!
It has been quite a while since I have worked with Flash and I'm definitely new to ActionScript, so I don't really have any clue about the code that you posted.
The sounds have not been placed in the timeline, but rather are referenced in the code.  There are only four buttons that play their corresponding files.  If I click one button, that sound file plays, but if I click another button, that sound file plays, but the previous sound file continues to play.  So if I end up clicking all four buttons, I have four sound files all playing at the same time.
How can I get the previous sound file to stop when I click on a new button.
Thanks again kglad for your response and any more help would be appreciated!

Similar Messages

  • Control User Specific button in ALV report

    Hi,
    Can anybody please suggest me how to control "USER SPECIFIC" button in ALV report layout using authorization object. I mean if you can tell me which authorization object is responsible to control the "USER SPECIFIC" button.

    additional info to what Lakshmi already said:-
    normally the restrictions for saving layouts/display variants are done at 2 levels:
    1) The developer of an ALV list first predetermines the authorization in the 'i_save' parameter within the code.
    I_SAVE = ' '     -
    layouts cannot be saved
    I_SAVE = 'A'   -
    user-specific and cross-user layouts can be saved
    I_SAVE = 'X'   --- cross-user layouts can be saved
    I_SAVE = 'U'  ---  user-specific layouts can be saved
    2) The second level comes to us restriciting the S_ALV_LAYO which gives access to users to save global layouts if I_SAVE for that particular transaction is A or X.
    for example, a report has I_SAVE= 'A', which means
    it will allow to save  User-specific  layouts without any restrictions.
    and if user has S_ALV_LAYO then he can save both User-Specific and Global Layouts(variants).
    it would be better to keep this object separate.

  • Is there a way to control the "back button"?

    i've got a simple animation intro, ending with the very last
    key frame being static with links. then the links will bring up
    another page in the same window. but i was wondering if there was a
    way in flash to control the back button to bring the user to that
    very last key-frame, at the end of all the animation. thereby
    skipping over the intro-animation.
    also:
    i have an html intro page, where you can go to the flash
    introduction, or the peoples' old website, or to a Flash-Player
    download window. i was wondering if there was a way to create a
    link to that end key-frame in order to by-pass the animated flash
    intro.
    thanks for your help

    gotoAndPlay(32) if you have a continuos animation after that
    frame and you want to continue it; the number within the brackets
    is the number of the frame you want to go to. Or else if you want
    to go to a particular frame and stop there, gotoAndStop(32);

  • How can I adjust a small section of sound within a clip?

    I'm working with Mavericks, iMovie 10.0.5 on OSX 10.9.4. I want to lower a small section of sound within a video clip without having to lower sound for the entire clip. I could do this in the previous iMovie version. How can I do this now?

    Hold down the Option key and double-click on the audio volume level line. That will add a control point where you can adjust the volume on either side. Add more control points such that you can set the level to what you want where you want.

  • Midi controlled sounds

    My midi controlled sounds cut off when controller keyboard note is lifted creating a click as the "sample is stopped" any Ideas ?
    this is domianent on piano patches

    Thanks for your reply Blueberry. The fact that I have overlapping objects is not in dispute here. What effect does it have? I don't understand what difference it makes in terms of the operations within MainStage2. That's what the question is.
    As it turns out, there are several objects highlighted in blue (in layout view), but that doesn't tell me what it means. In the layout view, I had put pedals and switch controllers together based on the keyboards they are connected to, and they match the physical layout I have on the floor. I also put pitch and mod wheels next to each of the keyboards. I don't know whether I need to do this, but I thought it would help to see what's going on, and to map functions with controls.
    Is it an innocuous message telling me that the graphic might not be clear, or is it saying that there is an underlying configuration issue which will prevent operation ? If it's graphical, then it still looks like I want it to look, but if it's something programmatic which will disable functionality, then that's a different story. In that case, I want to know how to resolve the issue, otherwise there is no issue from my perspective. Things look like I want them to look.
    Still looking for something more conclusive.
    Thanks,
    Glennzone

  • The sound mute button doesn't work on my HP pavilion dv6

    The finger button on the pavilion dv6 doesn't work for the sound mute button.  I'm not sure if a setting has been disabled or not. Anyone have any ideas on how to restore it ?

    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/sp48501-49000/sp48668.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, right click the speaker icon in the Taskbar and select Playback Devices.  Left click 'Speakers and Headphones' once to highlight it and then click the Set Default button - check if the mute button now functions correctly
    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

  • How can control sound of my tabs?

    I open few tabs. And all of this making noise. I want to control sound of my tabs. I want to turn of some tabs' sound. Can someone help me?
    Sorry for my English...

    You can make a backup copy of the sessionstore.js file that stores session data.
    *http://kb.mozillazine.org/sessionstore.js
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • Control Sounds: play, return, pause

    Hi All,
    I have a movie clip that i want to add sound to! I currently have three buttons, A) return, B) pause, C) Play. So return brings the movie clip back to frame one to begin again, pause pauses at the current frame, and play resumes play after pause. All this functionality is working properly. However I also want to do this with sound. I found a workout around by going to properties -> Sync -> Stream. Which allows these buttons to also control the sound...im not realy sure how or why?! But what I want to know is there a way to hard code it? I tried stopAllSounds(); but this did not work.
    Here is a code snippet I am currently using for controling the movie clip to give you an idea:
    case returnBt:
                        gotoAndPlay(1);
                        break;
                    case playBt:
                        play();
                        break;
                    case pauseBt:
                        stop();
                        break;
    Thanks all, im curious to hear if there is a way to hard code it.
    AS2 and AS3 answers welcome.

    Look into using the Sound class for playing/controlling sounds.  If you search Google using terms like "AS3 Sound tutorial" you should find what you need to implement this.

  • I am createding a digintal flipbook for my work, we have adobe cloud. needs to have controls, sound,

    i am createding a digintal flipbook for my work, we have adobe cloud. needs to have controls, sound, allow rss feeds, pdf download, print options, etc. what software works best to do this? are there plugins for flash that have these controls built in, where i just import my my pdf files?

    If you don't already know enough about Flash's capabilities to answer this then you might want to consider an alternate solution, although the level of customization will be limited. The publishing portion of the application family can easily produce ebooks:
    http://www.adobe.com/products/digital-publishing-suite-family.html
    That's about as drag and drop as you can get for your basic needs.
    If you need deep customization at the same time then Flash is perfectly good at this kind of thing, but there is no "easy button" that will do it all for you. There are many flipbook creation services (similar to the digital publishing route), but since you want RSS feeds, controls, sound, etc you may find the result isn't as complicated as you need.
    I'd suggest just using Flash, getting a page roll effect plugin and creating your book by hand, giving you the full coding power of Flash to perform all your tasks. Some of them, like basic page flipping, you can find project source code for (page clipping example).

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Sound keys on keyboard no longer control sound. What should I do to fix this?

    Sound keys on keyboard no longer control sound. What should I do to fix this?

    Hey Bill,
    Check to see if the option for "Use all F1, F2, etc. keys as standard function keys." is turned off. When it is turned on, you would need to hold the Fn key while hitting one of those keys will make it work they way icons are displayed. To find out where this option is, go to System Preferences > Keyboard and in the Keyboard tab is where you want to be. Take a look at the article below for more information. 
    How to change the behavior of function keys on your Mac
    http://support.apple.com/en-us/ht3399
    Takre care,
    -Norm G. 

  • Installed iTunes on my laptop Windows 7 64 bit and I now have the following problems 1) iTunes volume won't adjust with the laptop volume control, only within iTunes, 2) playback doesn't work unless I click play twice and 3) the iTunes Store won't open

    Installed iTunes on my laptop Windows 7 64 bit and I now have the following problems 1) iTunes volume won't adjust with the laptop volume control, only within iTunes, 2) playback doesn't work unless I click play twice and 3) the iTunes Store won't open

    Installed iTunes on my laptop Windows 7 64 bit and I now have the following problems 1) iTunes volume won't adjust with the laptop volume control, only within iTunes, 2) playback doesn't work unless I click play twice and 3) the iTunes Store won't open

  • I have a VI with a while loop controlled by "stop" button. How can I finish the running of this VI in a another VI programmablly.

    I mean I want to control the "start" and "stop"
    of a VI with another VI.
    Thanks

    1... Change your slave VI to stop on the button OR a global boolean variable.
    2... When your slave VI does stop, set the global variable to FALSE (ready for next time).
    3... Set the global to TRUE from the master controlling VI, on button click, or whatever is supposed to stop the slave.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Where is controls palette search button in 8.20?

    This is embarrassing!  I rely heavily on the control and function palette search buttons.  I updated to 8.20 and my control palette search button disappeared.  The function palette search button is in its normal place.  I've looked through Help and the Options popup but don't see a way to enable/disable the search button.  I need it back!
    Jeff
    Climbing the Labview learning curve!
    Sanarus Medical
    Pleasanton, CA

    The search button should be right there so something is wrong....
    Try to repair the labview installation.
    Also check your LabVIEW.ini file for weird entries.
    LabVIEW Champion . Do more with less code and in less time .

  • Controll sound

    Hello! I'm running Arch Linux with i3 and gnome. But I can't controll the sound in i3. Via gnome I can just controll the sound via the gnome ..urr..sound controlling app. I installed alsa-utils and alsa-oss and tried using alsamixer (via terminal) to controll sound in i3, alsamixer finds the USB sound output device (dac); but I can't controll the sound on it, it has no "sound bar". It is not muted, I can listen to music via spotify/cmus and when running speaker tests (speaker-test -c 2) I get the aproriate sound output, there is how ever no sound in VLC/Gnome Media Player.
    So, any one know how to get controll over my USB sound device? I'll post some (hopefully) helpfull results from commands belllow:
    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 3: Audio [DigiHug USB Audio], device 0: USB Audio [USB Audio]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 3: Audio [DigiHug USB Audio], device 1: USB Audio [USB Audio #1]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    lsmod | grep '^snd' | column -t:
    snd_usb_audio 93519 4
    snd_usbmidi_lib 18744 1 snd_usb_audio
    snd_rawmidi 18991 1 snd_usbmidi_lib
    snd_seq_device 5300 1 snd_rawmidi
    snd_hda_codec_hdmi 24120 4
    snd_hda_codec_realtek 114123 1
    snd_hda_intel 23989 5
    snd_hda_codec 92713 3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
    snd_hwdep 6556 2 snd_hda_codec,snd_usb_audio
    snd_pcm 74812 5 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi,snd_usb_audio
    snd_page_alloc 7217 2 snd_pcm,snd_hda_intel
    snd_timer 19222 1 snd_pcm
    snd 59656 28 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_seq_device,snd_rawmidi,snd_usbmidi_lib,snd_usb_audio
    ls -l /dev/snd:
    ls -l /dev/snd:drwxr-xr-x 2 root root 80 May 19 11:59 by-id
    drwxr-xr-x 2 root root 120 May 19 11:59 by-path
    crw-rw----+ 1 root audio 116, 7 May 19 11:58 controlC0
    crw-rw----+ 1 root audio 116, 16 May 19 11:58 controlC1
    crw-rw----+ 1 root audio 116, 18 May 19 11:58 controlC2
    crw-rw----+ 1 root audio 116, 22 May 19 11:59 controlC3
    crw-rw----+ 1 root audio 116, 6 May 19 11:58 hwC0D0
    crw-rw----+ 1 root audio 116, 15 May 19 11:58 hwC1D0
    crw-rw----+ 1 root audio 116, 14 May 19 11:58 hwC1D1
    crw-rw----+ 1 root audio 116, 13 May 19 11:58 hwC1D2
    crw-rw----+ 1 root audio 116, 12 May 19 11:58 hwC1D3
    crw-rw----+ 1 root audio 116, 5 May 19 14:06 pcmC0D0c
    crw-rw----+ 1 root audio 116, 4 May 19 14:06 pcmC0D0p
    crw-rw----+ 1 root audio 116, 3 May 19 14:06 pcmC0D1p
    crw-rw----+ 1 root audio 116, 2 May 19 11:58 pcmC0D2c
    crw-rw----+ 1 root audio 116, 11 May 19 14:06 pcmC1D3p
    crw-rw----+ 1 root audio 116, 10 May 19 14:06 pcmC1D7p
    crw-rw----+ 1 root audio 116, 9 May 19 14:06 pcmC1D8p
    crw-rw----+ 1 root audio 116, 8 May 19 14:06 pcmC1D9p
    crw-rw----+ 1 root audio 116, 17 May 19 14:06 pcmC2D0c
    crw-rw----+ 1 root audio 116, 21 May 19 14:06 pcmC3D0c
    crw-rw----+ 1 root audio 116, 20 May 19 14:14 pcmC3D0p
    crw-rw----+ 1 root audio 116, 19 May 19 11:59 pcmC3D1p
    crw-rw---- 1 root audio 116, 1 May 19 11:58 seq
    crw-rw----+ 1 root audio 116, 33 May 19 11:58 timer
    Let it be noted that before I re-installed arch (minor screw ups : ) ) alsamixer worked flawlessly, I can't remember having done anything different during install
    Thank you for all replies!
    Last edited by vimes (2012-05-19 12:22:47)

    You should be able to control the sound dynamically via simple scripts, e.g.:
    amixer -q sset Master 1+
    and
    amixer -q sset Master 1-
    For muting the sound, use
    amixer -q sset Master toggle
    You can use xbindkeys to assign them to keyboard shortcuts of your choice. Of course, you can use the native i3 config file / scripting capabilities as well; I don't know this WM's config rules well enough, though.

Maybe you are looking for

  • How to edit a Forms Central form in PDF

    Using Adobe Acrobat XI which i normally use to create forms, I am able to open the Forms Central PDF that I created. However it says it is secured and I can't edit it.  Is there a way to create a PDF from Forms Central that isn't secured?  Any other

  • Text variable creation Error.

    Hello gurus , I am working in BI 7 I have to design a Report in which i want follwoing key figures in column Net volume (User entry range of month)      Billing Product (same range of month) Now the trickiest part is that whatever user enters on Sele

  • JLabel won't display image until all methods have completed

    Hi, I?m trying to deal playing cards. I can click a button to deal one card at a time but I?m trying to set it up so it runs 25 cards with a delay on each card. Otherwise, it just puts up 25 cards at the same time. I?ve been reading about threads and

  • Mixing tracks down to stereo cd from Garageband 3

    Would the finished cd sound quality be better if I used the optical outs to an external cd burner rather than exporting to itunes and burning to cd from there? Any ideas.

  • Trouble with Adobe Flash Installation

    I am having an issue installing Adobe Flash on my MacBook Pro OS X 10.9.2 using Safari.  When I try to run the installation, it begins running until about 50%.  Then it says installation was unable to be completed.  It does not give any more detailed