Button to stop audio

I have a PDF with an audio file that automatically starts playing as soon as the PDF opens. I would like to add a button that users can click to stop playing the audio. However, the only action I see that is related to audio is to PLAY audio.
Can anyone help to explain how to create a button that STOPS the audio from playing?

rowby wrote:
> Hello!
>
> I have a movie with 4 separate audio buttons set as
"Start/Repeat 0".
>
> I want the web visitor to be able to hit a "stop" button
to stop the playing
> of the audio. The audio "stop" button would be next to
the play button.
> Alternatively there could be ONE button in the movie
that woud stop ANY audio
> that is playing.
>
Make a movie clip, frame 1 with sound set to EVENT and number
of loops you want
and a stop(); action.
Frame 2 of that movie clip the very same sound set to STOP
and loop to 0 (zero)
Now all you need is a button in frame 1 OFF The Sound with
action nextFrame();
and on second frame button with an action to ON the button
using prevFrame();
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • Button Widget stops audio

    I'm using the button widget in Captivate 5, which is great. Except that it causes the slide audio to stop about 6.5 seconds into a slide - as though the slide becomes Inactive. I can't find a way to change this. Does anyone have a suggestion?

    Hi Lieve,
    Regarding your first concerns : For the static button widget we didn't want to make it to pause the slide at any time. This would behave just like any other static captivate object though we could have actions associated with it which would get triggered on clicking this. However you could enter a feature request whereby this widget pause time could be set as a parameter(in the Widget Properties dialog) which would make it pause at that time for user to click.This would be helpful when this widget is inserted on Question slides. Pausing at 6.5 secs is a bit misleading so this property was removed from the Widget.
    Regarding the second concern : The second widget is just the interactive version of the same static widget which would have the additional 2 properties :
    1.Pause for user interactions
    2.We would get the success/failure/hint captions accordingly when clicked inside/outside the button widget.
    However since we have actions which could be set from the widget properties dialog itself , we need to set it there in order for the appropriate action to get triggered.
    These widgets have been created so that the user can place buttons with different themes/colors/look and feel in his/her project as per their requirements.
    Thanks and regards,
    Sudeshna Sarkar

  • Flash CS3 Play/Stop audio button problem

    I made a play/stop audio button with this youtube tutorial (youtube.com/watch?v=XU6oMEFUFF8) but after the sound is finished I want the play button to show up agian.
    Here is the actionscript:
    import flash.events.MouseEvent;
    play_btn.addEventListener(MouseEvent.CLICK,clickha ndler);
    stop_btn.addEventListener(MouseEvent.CLICK,clickha ndler);
    function clickhandler(event:MouseEvent):void{
    swapChildren(play_btn,stop_btn);
    what code should I add to my current code?
    I also can send you the Fla.

    You should consider using the Sound class. Here's a quick overview of it:
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d21.html
    You'll be able to add event listeners to the sound to know when it completes so you can execute more code, such as swapping the play and stop button. There is an example in that overview of listening for the SOUND_COMPLETE event (e.g. channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);). It should contain everything you need.
    A basic example of what you'll end up with (there's many ways to do it) might look something like this:
    // just set up and wait for click
    var isPlaying:Boolean = false;
    var mySound:Sound = new MySoundInLibrary();
    var myChannel:SoundChannel = new SoundChannel();
    myChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
    // buttons
    play_btn.addEventListener(MouseEvent.CLICK,clickhandler);
    stop_btn.addEventListener(MouseEvent.CLICK,clickhandler);
    function clickhandler(event:MouseEvent):void
              swapChildren(play_btn, stop_btn);
              if (isPlaying)
                        isPlaying = false;
                        myChannel.stop();
              else
                        isPlaying = true;
                        myChannel = mySound.play();
    function onPlaybackComplete(e:Event):void
              isPlaying = false;
              swapChildren(play_btn, stop_btn);
    The basic idea is keeping a flag if the audio is currently playing. If it isn't then assign the sound to a channel and play it while setting the flag (isPlaying) to true. If it's already playing, set the flag to false and stop playing the audio.
    The swapChildren is run in the onPlaybackComplete() method so when the audio completes the play button is swapped back in front.
    Rather than swapping the children I'd urge you to toggle the .visible property instead. It's easy to run commands in the wrong order and get desynched on depth.

  • Stopping audio and starting another audio when button clicked

    Hello,
    I have a multiple slide document, and I want sound to stop
    when they click the "Next" button, and another audio clip to start.
    Here is what I have so far:
    //audio
    x = new Sound();
    x.attachSound("Slide1");
    x.start(0, 0);
    musicplay = true;
    forward_btn.onRelease = function() {
    gotoAndStop("2");
    numbering eq numbering++;
    So I just want it to play audio clip "Slide2" when they click
    forward_btn, and I want "Slide1" to stop.
    Thanks!

    Attach your second sound file to the frame that will play the
    second sound. Then try adding stopAllSounds() before the
    gotoAndStop("2"); to get the first sound to stop playing and then
    play the second sound.

  • Captivate 5.5 Audio button has stopped functioning

    My Audio button to insert audio into a Captivate 5.5 text files has stopped working. When I click on it, it freezes my Captivate screen and I have to close the program. I can remove audio but can't Add. I can go the Library and access and edit the audio there.  I've tried rebooting etc. Any thoughts. I have a deadline today but looks like not going to make it. Thanks.

    Hello,
    Welcome to Adobe Forums.
    Can you reproduce this issue with a Blank new Project ?
    If you do not have a specific preferences and setting for your Adobe Captivate then please follow these steps :
    1) Close Adobe Captivate 5.5
    2) Rename "Captivate 5.5" folder :
    Windows Vista and Windows 7: C:\Users\[user name]\AppData\Local\Adobe
    Windows XP:  C:\Documents and Settings\[user name]\Local Settings\Application Data\Adobe
    Mac:  /Users/[user name]/Library/Preferences/
    3) Launch Adobe Captivate 5.5
    4) Open your project or a blsnk new project and check Insert -> Audio
    Thanks,
    Vikram

  • Stopping audio after continue button

    I am trying to stop an audio clip after a continue button is clicked. I added the audio to the button and tried to use the STOP AUDIO WHEN CLICKED button is checked. When I preview it though, the audio does not stop and continues to run for the entire slide. I want to audio to only play while that caption is up and the continue button is not selected.
    For example, I am trying to read a caption box that I have made. I want the user to be able to click continue and see the next caption box which then starts the next reading of the next caption box. Any ideas?
    I am use captivate 4, thanks.

    Hi there
    Place the next caption on a new slide. Then configure the button so the action is to go to the next slide. The audio should be skipped over and the next slide audio should play.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Button Pointing to audio file in same directory

    I'm fairly new to Flash, but have gotten the hang of it for
    the most part.
    I'm trying to create audio buttons that will play vocabulary
    words when clicked on for a language learning website. I can create
    buttons that play audio when clicked, but as of now the only way I
    know how to do it is to add the audio directly to the swf file. The
    problem is this takes up about 24kb of space, and there will be
    about 20 copies of the button per page, each for a different
    vocabulary word.
    I was thinking it would be nice if I could use the exact same
    swf file to save on loading time, but have it point towards
    different audio files. Basically, I figure if the audio is built
    into the swf file, when the page loads it will take a long time,
    because it will load all of the audio along with the files. if it
    points separately, it will only load the audio when the button is
    clicked.
    Is it possible to do this? I've heard that you can use the
    object tag to point towards separate audio files, but am not too
    sure on how to pull that off. I'm just looking for a way to use the
    button I've created and keep speeds reasonable when loading the
    webpage. Loading 30 audio files at the beginning can slow it down,
    especially if they only plan on playing a couple of them. Each mp3
    is only a few kb larger than a swf file with the audio already in
    it, so the compression of mp3 in a swf (at least from what I know)
    didn't do too much for my case.
    I figure I can put all the audio files in a folder along with
    the swf file.

    Superman859 wrote:
    > I'm fairly new to Flash, but have gotten the hang of it
    for the most part.
    >
    > I'm trying to create audio buttons that will play
    vocabulary words when
    > clicked on for a language learning website. I can create
    buttons that play
    > audio when clicked, but as of now the only way I know
    how to do it is to add
    > the audio directly to the swf file. The problem is this
    takes up about 24kb of
    > space, and there will be about 20 copies of the button
    per page, each for a
    > different vocabulary word.
    http://www.kennybellew.com/tutorial/
    Very detail tutorials on Sound in flash, from basic stop/play
    to complex,
    dynamic players with all kind of bells and whistles
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How can I map a keyboard shortcut to the reacord button in the Audio Mixer Panel?

    I have been recording voiceovers in Premiere Pro CS5 for a while, but I would like to improve my work flow. Each time I record a take, I first press the record button (labeled as B below) with the mouse cursor and then press the Play button with the Spacebar keyboard shortcut. After I record the audio, I hit Stop and this toggles the record button off at the same time. I then must hit the record button again with the mouse to start the process over again.
    Is there a way to map a keyboard shortcut to the record button in the audio panel so that I don't have to touch the mouse when recording voiceovers?

    There is not currently a shortcut for this. That's a good feature request, though. You can submit feature requests here.

  • Stopping audio in an interaction

    I have an interaction with audio narration added to the buttons of the interaction. Is there a command to manually stop the audio from playing that I can assign to a button or do users have to wait until the audio stops?

    Button can only mute. I don't know of a way to control audio attached to interaction buttons.  With audio objects or with the Play audio command (stop triggered audio) that is possible, but not aware of a work flow for interaction audio.

  • My quicktime player has stopped audio recording. Any suggestions what I can do?

    my quicktime player has stopped audio recording. Any suggestions what I can do?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPhone shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • AS3 stopping audio streaming inside a layer

    Sometimes I get ahead of myself and have to stop and say how the hell did I do this before? I'm referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping. But how do I stop audio that is streaming inside a layer from a button ?
    var my_sound:Sound = new Sound();
    my_sound.load(new URLRequest("yoursoundfile.mp3"));
    var my_channel:SoundChannel = new SoundChannel();
    //2.
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    //3.
    function playSound(event:MouseEvent):void{
    my_channel = my_sound.play();
    //4.
    function stopSound(event:MouseEvent):void{
    my_channel.stop();

    OK what I actually need is a mute and play button for the audio track
    So how can I stop, or in this case mute the audio without stopping the animation, follow?
    example, volume is at 100
    click button volume goes to 0
    click same button or another button volume goes back to 100

  • Stop audio after page swipe

    I have a 60 sec long audio file on a page, which plays on page load. Is there a way to make it stop when I swipe to the next page?
    Of course I could make a button to stop it, but it would be much better if it could stop without doing that extra step.
    In the media panel I have checked "Stop on Page Turn", but that does not affect anything when I preview on iPad (though I know it works when I export project as .swf file)

    A workaround is to create a dummy audio or video file on the next page.
    http://digitalpublishing.tumblr.com/post/10540210277/stop-a-video-when-going-to-the-next-p age-in-an-article

  • My iPhone 5 won't charge properly, computer doesn't recognise it and the home button has stopped working completely, it hasn't been dropped or water damaged at all, any ideas?

    My Iphone 5 won't charge properly, computer won't recognise the device and also the home button has stopped working completely, it hasn't been dropped or suffered any water damage, anybody else had anything like this? and what are the solutions? thanks

    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.

  • My iPad 2 home button has stopped working I have tried the swivel from landscape to portrait whilst holding the button, I have tried holding the off button then the home button and I was told I could create my own home button in the settings but I can't!

    My iPad 2 home button has stopped working all together, I have tried the swivel from landscape to portrait whilst holding the home button, I've tried pressing the off switch then pressing the home button, the other thing I was advised to do was create a home button in the settings under the accessibility option but I don't have the option I was advised to use under there! Help! It's really frustrating having to turn the device off everytim I want to switch apps and I really can't afford to send it away to be mended! Many thanks in advance

    The accessibilty setting that was mentioned is:
    * Enable AssistiveTouch
    Enable AssistiveTouch which floats a virtual button on-screen which can mimic all hardware buttons on the device:
    Settings>General>Accessibility>AssistiveTouch: turn ON
    *Note* If you power off the device using the AssistiveTouch panel (tap the on-screen AssistiveTouch button, Device>Lock Screen (tap and hold to power off)), you will NOT be able to power on the device *if your Sleep/Wake (power) button is not functioning*. You will need to connect the powered off device either to a PC's USB port or an external charger to power the device back on.

  • Help please!  I need code for a button to stop a movieclip, when both are in a nested animation.

    I'm working on a project that has a button and a movieclip, which we want the button to stop, both nested in a movieclip on the main timeline.
    The button instance = muteBtn
    The clip to stop instance = backmusic
    The movieclip they are nested in = ecard
    There's also a preloader that works just fine on the main timeline.
    I've seen a wide variety of ways to stop a streaming MP3 and they all look way too complicated for my current Flash knowledge level.  As far as I know, if the MP3 is in a movieclip, stopping that clip will also stop the MP3.  If that's just dead wrong and what I'm trying to do will never work, please just let me know so I can struggle in another direction.
    What I'd prefer though would be the coding to make this button work.  I've tried a wide variety of ways to code something that seems like it should be so simple, and keep getting the error "Access of undefined property muteBtn".  I'm assuming this means it can't find the muteBtn in the nested layer.  How do I better define the muteBtn?  Do I then need to add something else that more clearly defines where the clip I want it to stop is since it is nested too?  PLEASE HELP ME!! Thank you in advance!
    Some of what I've tried:
    function endMusic(e:Event):void {
        ecard.backmusic.stop();
    or
    function endMusic(e:Event):void {
        backmusic.stop();
    with...
    muteBtn.addEventListener(MouseEvent.CLICK, endMusic);

    When you target objects, you need to consider the path to the object based on where you are trying to target from.  So if your code is in the main timeline and your button is inside a movieclip, then you need to target the button via the movieclip...
       movieclipName.muteBtn.addEventListener(MouseEvent.CLICK, endMusic);
    As far as stopping a moiveclip resulting in stopping a sound from playing, it is not likely to work.  To stop a sound you need to target the sound to stop it.

Maybe you are looking for