Controlling Sound

I am creating a CD ROM whereby I have an series of links that
play an animation of a train going to another section of the
screen. I have a sound of a train for each of these, and realise
that the novelty of this sound will wear thin after a while. I have
created a button to stop the sound and used the stop all sounds
function. This however only seems to stop current sounds and I want
my button to turn off this train sound off altogther. Any help
would be greatly appreciated
My actionscripting is quite amateur at best and I am not sure
how to go about turning off this sound, i have also tried script
something like this but again, my scripting is poor and this didn't
work:
Sounds Off
on(release) {
soundOff();
var soundOff = new Sound(trains.wav);
soundOff.setVolume(0);

I believe what you want is this on your button:
on(Release){
soundOff.setVolume(0)
and then keep this on the main timeline:
var soundOff = new Sound(trains.wav);
That way, when the button is pressed, the sound object with
name
soundOff will be set to zero!
Alternatively, keep all the code together by giving your
button an
instance name of soundOff_btn and placing the following code
on a frame
in the main timeline:
var soundOff = new Sound(trains.wav);
soundOff_btn.onRelease = function(){
soundOff.setVolume(0)
sprecks1 wrote:
> turning off this sound, i have also tried script
something like this but again,
> my scripting is poor and this didn't work:
>
> Sounds Off
>
> on(release) {
> soundOff();
> }
>
> var soundOff = new Sound(trains.wav);
> soundOff.setVolume(0);
>
>
>

Similar Messages

  • 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. 

  • 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.

  • 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

  • Control sound in timeline

    Hy,
    I've some mc called, one a time, with attachMovie named
    mcTarget, each of
    this has one speaker track sincronized with the animation on
    the stage. For
    this reason sound is put directly in timeline in stream mode
    (proprieties>>Sincr: stream). But now I cant control
    the volume of these
    sounds. I'll tryed to do this:
    //on main root
    mySound = new Sound(); //no specify target to refer a "global
    sound"
    function Volume(val){
    mySound.setVolume(val);
    trace(val);
    // in another place
    Volume(50);
    This works only with a sound placed in main root but does
    nothing if the
    sound is placed on a nested mc (my case).
    Someone have an idea or a alternative way to do this?
    Thanks
    Roger

    "sneakyimp" <[email protected]> ha scritto
    nel messaggio
    news:e1kumu$sv6$[email protected]..
    > mySound cannot be defined as an empty sound object. it
    has to refer to
    > the
    > soundclip in question.
    This is the "canonic way", but you can use that code to do a
    something near
    at "global sound"
    you can see it also in at
    http://www.kennybellew.com/tutorial/globally.htm.
    >
    > // NO
    > // mySound is attempting to refer to *one specific
    sound*
    > // *not* a global sound setting
    > mySound = new Sound();
    > mySound.setVolume(50);
    >
    > // YES
    > // this is referring to one particular sound
    > this.MySound1.setVolume(50);
    >
    > I'm not sure how this relates to sounds added to the
    timeline. i think
    > you
    > have to use the flash authoring interface controls to do
    it. i *don't*
    > think
    > you can control sounds added this way with actionscript
    unless you can
    > determine what their target path is.
    Sure, it's works with sound put in a root timeline..
    > this may or may not be helpful:
    Thanks, but I didn't find the solution for my case...
    >
    http://www.kennybellew.com/tutorial/multiple_scenes.htm
    many thanks for the answer.

  • Controlling sound on user computers

    Hi
    I was wondering if their is a way to control sound when the users log on so they cannot hear on their machines. Is their any setting in Mac Server 10.4.9.
    This would help stop them from going to music sites on line instead of working.
    Can it be done.

    Hi
    This is not a managed preference available on OSX Server. You can mute the sound on each client mac whilst logged in as the administrator. When students log in with their network accounts they won’t hear anything.

  • Controlling Sound Pitch and Speed

    So, I've seen an example of how to control sound Pitch and Speed in ActionScript 3.0, Andre Michelle » Blog Archive » Pitch MP3, but in this example the speed and pitch are being controlled together. Is there any way to control them individually?

    You can control them individually - look in the responses at #6 and #17

  • 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 sound on extended keyboard in Mavericks

    In Mountain Lion I could use F keys above the numerical keypad to control sound or to mute sound.
    I got a new Apple extended keypad and installed Mavericks. I can't control sound.
    There are sound icons on F10, 11 and 12 but they do other things such as go to dashboard, show desktop and show open windows, which is fine by me.

    Do you have this System preference pane on your MBP or something similar?

  • 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.

  • How to reinstate F10, F11 and F12 to control sound?

    How to reinstate F10, F11 and F12 to control sound?h

    System Preferences  >  Keyboard
    Under Keyboard tab uncheck "Use all F1, F2 keys as standard function keys".

  • 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).

  • Sudden volume control/sound bug!

    I began experiencing this bug tonight and I'm not sure if it is a virus?
    I was watching a video on youtube and suddenly noticed that my volume was cutting in and out. After closing firefox, I could hear the volume popping in and out and noticed that the volume icon in the toolbar was going from medium to high and back. When I try to use the volume control slider, it goes from being whited out (can't move it) and back to normal, and when I try to use the volume keys, I get a circle and slash to show that I cannot manipulate the sound.
    I took screenshots of this in case I needed to show someone.
    It does this randomly. Sometimes it's normal, sometimes it's "stuck" and I can't get any sound, and then randomly it will pop in and out again and again. This has never happened before.
    I am using a 17" macbook pro (silver keys, not the newest one). The keys on the keyboard are not stuck, they function properly and like normal.
    I have tried:
    verify & repair permissions in disk utility
    run scripts
    run onyx and cocktail
    cleared all caches
    installed newest version of osx
    restarted and shut down countless times
    cleaned keyboard just in case
    If anyone has heard of this or has any suggestions PLEASE let me know. I baby this computer and I'm at my wits end!

    If and only If it's a Logic Board problem, the time between symptoms appearing to failure of hardware can vary.
    NOTE: I thought only this might be the problem because I've seen it happen a number of times, particularly in notebooks (because the hardware can become damaged more easily)
    I can provide no definite time-frame. but, I would suggest having the machine checked by an Apple service technician, or center; as always its better to be safe than sorry.
    Logic board (i.e motherboard) failures basically mean the core hardware dies, everything else, drives, RAM etc should remain unharmed. You may lose some core settings, date/time etc...
    Hope this is useful and good luck!
    Kind Regards,
    Peter.

  • Two Users, Only One Can Control Sound

    I recently created a new user account for myself to fix a problem with Mail. Now I am unable to control the OS's Sound options (e.g., change volume, mute, etc.) when in the new user: the Sound option panel appears under System Preferences, but the volume slider and mute button are grayed-out.
    The only way for me to change the volume is to switch to my old user account, which I don't use for anything else. I guess I could delete the old user account, but I'd like to find a fix for the sound control issue first.
    BTW - I made my new user area the Administrator and revoked Administrator privileges for the old user area, and the sound problem persists...

    Software Update is not offering me any Airport updates on the G4 (or the Intel).
    The recent Airport Update, "AirPort Extreme Update 2007-001", is of course only for Intel Macs.
    They could only be "trying to use the same IP address" if they were not configured to use DHCP, but they are configured to use DHCP, and whichever connects does get an address in the 10.0.1.[2-200] range so I think that's not the problem.

  • F10, F11 & F12 keys no longer control sound

    Hello everyone,
    Our MacBook's FN keys no longer control the sound. F12 was turning on the Dashboard and F11 & F10.
    I thought I'd fixed that using Expose, but I don't know how to restore sound control to the keyboard.
    Help!
    And thank you!
    Eri

    I think I fixed it in Keyboard and de-selecting the Function thing.
    I think it's fixed.

  • Controlling sound volume in Finder

    I've recently changed from Panther to Snow Leopard.
    On Panther I could control the sound volume of music files (and play them from any point in time) within Finder. On SL, pressing the space bar brings up something to play the music from any point, but without a volume control.
    I often need to play music quieter than is possible with keyboard controls alone, so have been opening the files in Quicktime, iTunes or Garageband - which each have their drawbacks.
    Does anyone have a better solution, preferably within Finder?

    Thank you very much for your suggestion. I find that I can reduce the volume by three clicks beyond the normal keyboard, but no further - so not as far as in Quicktime or iTunes. This is certainly a help, but I would still like to go quieter if possible?
    (It is often for music recorded say from a singing lesson and input from an external device, but not necessarily to save on the computer. Or I may have saved it, but don't want it in the iTunes library... etc)

Maybe you are looking for

  • Lightroom Missing photos

    I have Lightroom 3 and Photshop CS5 on my iMac.  Suddenly Lightroom tells me that certain photos - held in the 'All Photographs' folder are either missing of offline (5247 of them).  I can open them in Photoshop, I can open them in Finder, but as soo

  • How to download adobe reader v 10 for computers without internet connection

    Dear Sir I would like to downlaod the latest version of adobe reader v 10 for my two other PCs which do not have an internet connection., Could you please help me and direct me to the link where I can download this version for and take it on a pendri

  • Sync folders (iMac and Macbook Pro)

    I would like to sync folders between the 2 macs (MBP and a iMac), but I did't find any tool to automate this in the Leopard. Anybody knows how to make this, or know any application to automate this task? Thanks

  • Automatic import problem

    Can someone tell me what I may be doing wrong. When I place a CD in my CD player it boots it to iTunes, names the songs and checks the songs. Howeverl, to import the songs I have to import the songs individually from the CD. Is there any way that I c

  • Itunes converrts videos for ipod but then thay have no SOUND!!! Help please

    Itunes converrts videos for ipod but then thay have no SOUND!!! Help please Just bought it a couple of days ago, and its doing this!!! why doed the videos now both on my ipod and itunes not have sound?