stop an audio clip and start another when clicking on btn

Hello
I have an audio clip that plays, and I want the clip for the stop and the other to play when the user clicks a button. The button launches a popup window which is a movieclip (pop_mc. Click on the exit_btn in the pop_mc and audio for this popup stops. This should be simple enough? Thanks for any help! Here's what I have so far:

audio
x.attachSound ("Section1_pg6");
x.Start (0, 0);
musicplay = true;

code for the button that launches the new sound and the movieclip
on (release) {}
If {(_root.pop_mc._visible is true)
setProperty ("_root.pop_mc", _visible, false);
} else {}
setProperty ("_root.pop_mc", _visible, true);
}
}

exit within the pop_mc button code
on (release) {}
If {(_root.pop_mc._visible is true)
setProperty ("_root.pop_mc", _visible, false);
} else {}
setProperty ("_root.pop_mc", _visible, true);
}
}

There is no case sounds play() method. Use the start() method as you did in your first post.

Tags: Adobe Animate

Similar Questions

  • stop audio and start another audio, click on the button

    Hello
    I have a document from multiple slides, and I want sound to stop when they click on the button 'Next' and another clip to start. Here's 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 numbering EQ ++;
    };

    So I just want to play audio clip "Slide2" when they click on forward_btn, and I want to "Slide1" to stop.

    Thank you!

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

  • Impossible to play the audio clips on the site. Click - page breaks.

    I'm playing the audio clips, sounds, dolphins (several sites) online site. Example: http://www.dolphinencounters.com/family-dolphinsounds.php#

    There is a small icon of ear for each clip. When I FIRST tried to read a clip, I got a "Quick Time plugin crashed" at the top of the page. Tried several times, same result.

    I went to TOOLS > OPTIONS > Applications tab. Given that I did not know what type of file format / clips have been, I found ALL the entries related to QuickTime and select the default setting or a different type of player. Restarted.

    When I tried this time, I still have collision warning. I double checked to make sure that QT all apps have gone and DISABLED by the plug-in page QT Extensions. Restarted.

    This time when I clicked on the icon of the ear, no sound is played, but the page pops up.

    Checked the settings/sound engineer. All OK. Updated QT for the last 7 and updated version to update system. No sound, no warning, page a few jumps.

    Other applications in the system plays its OK. Able to play videos in line with the sound. Just the noise / icon does not work.

    I would like to hear AND capture/download the sounds of dolphins. What is the problem with my system/FF 12.0? How can I fix it? How can I download?

    I tried to read the link to the icon to see the type of audio file, so I could access the issue more closely, but all links of clip are still with no recognized sound file format. Example: http://www.dolphinencounters.com/family-dolphinsounds.php#

    There are several elements on the page, but the links are all exactly as above.

    It has been long and there are probably several versions of FF as well as earlier versions of Windows, I remember listening and capture of the audio clips. Just do not remember how I did at the time.

    Win7 64 bit, 12.0 FF, QT 7 plug.

    It may be the prolongation of the QT interval, because the problem persists with all Applications QT, deleted or not, everything seems fine. No trainer, etc. No warning.

    I tried using IE and played clips, but WITHOUT my click the icon; they played just in overview. See still no way to capture or download and know that there is one somewhere.

    Hey ccorazza, you did so well with my last, have a curtain call repeat for this one? Thank you all.

    Hey, GreyWolf, sorry for the late reply. Didn't see your message until today.

    I was unable to get sound to play on this page too, but I got confused because it's an old version and I don't want to upgrade to the new version of QuickTime. But I'll test it on another PC with a Quicktime update.

    But after checking the file type, sounds, I see that they are .wav files. These files are usually played by Windows Media Player. So check to see if you can set the type of .wav file in the Tools > Options > Applications tab for Windows Media Player. Restart Firefox to see if the new change works.

    Also, I could find the urls for the files Dolphin audio so you can download them:

    You should be able to make links a right-click and choose Save the link under.

    How I found the links was I clicked on some empty page and chose to view the Page Source. A new window opens, I searched the word whistle then I copied the sounds/whistler.wav of the url part and added to http://www.dolphinencounters.com/.

    What other sites you have the problem with? I try to take a look at those and see if I can find a better answer for why this is happening.

  • How can I reset and start another game.

    Hello

    Please help someone, I spent several days on this and still can't make it work.

    The code below is ok, I play a bowling game using the keyboard and the timer with a reading of the text of the passage of time, the bowl moves to a set number of pixels on the screen.  while I would, mode full screen click Start/play button on the screen to start the game and the timer, all is in box 1.  I also would like the game to simply accept the 77 keycode and keyboard event (2 events to move the bowl) and wait for the boot/play button click.

    Thank you

    Mick

    import flash.utils.Timer;
    import flash.events.MouseEvent;
    import flash.events.TimerEvent;

    var totalTime:Number = 0;
    var startTime:Number;
    Stop();
    var bowlTimer:Timer = new Timer (1.6000).

    startButton.addEventListener (MouseEvent.CLICK, startTimer);

    bowlTimer.addEventListener (TimerEvent.TIMER, moveBowl);

    bowlTimer.addEventListener (TimerEvent.TIMER_COMPLETE, endTimer);

    / * function startTimer(e:MouseEvent):void
    {
    clockTimer.start ();
    trace ("Timer started");
    startButton.visible = false;
    }*/

    function moveBowl(e:TimerEvent):void
    {
    myBowl.x = myBowl.x + 70;
    trace ("Timer expired cycle");
    }

    / * function endTimer(e:TimerEvent):void
    {
    trace ("Timer complete");
    }
    */
    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyDownHandler);

    var myKeyBoolean = false;

    function keyDownHandler(event:KeyboardEvent)
    {

    If (event.keyCode is 77)
    {

    bowlTimer.start ();
    startTime = getTimer();

    }
    Else if (myKeyBoolean == false)
    {

    bowlTimer.stop ();
    totalTime += (getTimer () - startTime) / 1;

    yourTF.text = Math.round (totalTime) m:System.NET.SocketAddress.ToString ();
    } / / Add a yourTF to the stage

    }

    While he must wait to find out if someone is also a solution based on code that will slip into what you now have, is one of the easiest ways to make reset build your design in box 2, maintaining Framework 1 devoid of any objects/code controlled (graphics just to avoid a white Flash), and when you want to reset you use gotoAndPlay (1).  Who should return to the initial conditions all around.

  • Camera flashes in the audio window and a camera when using HD Pro Webcam C920 with Mac 0s 10.10.3 character animation - does not work.

    Wen, using my HD Pro Webcam C920 with my MAC pro with OS 10.10.03 the camera and audio Panel flashes just market every second or so and there is no connection to the tracker or facilitator. Y at - it an inconsistency with the camera?

    Solved the problem by turning on another webcam program (Facetime) and it seemed to stabilize the camera.

  • How can I stop a Clip (button) to work when clicked?

    Ok

    I use a clip as a button to display the content on a page, actually it's like a new page of the Web site. Problem is, with the script im using for this, once the content is the show, the button is still active and if you click on new, re-load the content. I want a way to actually disable the button whist, that content is displayed.

    Thank you.

    This.services_inner.buttonMode = true;

    This.services_inner.addEventListener (MouseEvent.MOUSE_OVER, rollOver_services);

    This.services_inner.addEventListener (MouseEvent.CLICK, onClick_services);

    function rollOver_services(evt:MouseEvent):void {}

    This.services_inner. Play();

    }

    function onClick_services(event:MouseEvent):void {}

    MovieClip (root).mov.backgrounds.colour.gotoAndPlay (2);

    }

    Yeh send me an e-mail as I told her in a private message.

  • How can I stop windows live messenger to start post when I start my computer?

    I try to shut down Windows live messenger to start whenever I start my computer.

    Hello

    This should fix it for you:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/how-to-disable-Windows-Live-Messenger-from/90b361c4-10e6-4fc8-98b0-34988cefa014

    See you soon.

  • My HP Laserjet 1020 stops after each page, and I have to click on "continue" in order to print another page. It is a new problem.

    Recently, the only change I did was to go to Avira anti-virus Microsoft Security Essentials.

    Hello

    As the problem only occurs with Word 2003, there could be a problem of setting. I suggest you to ask your question in the forums of Microsoft office.
    http://answers.Microsoft.com/en-us/Office

  • How do you keep a clip to move forward when clicked?

    I really don't understand why, but for some reason every time you click on an item in the hearing CS6 mutitrack Editor, it is automatically placed in front of all the other clips on his trail. It's extremely annoying behavior if you work on a track with more than two clips that overlap and it doesn't seem to be possible to cancel the trip after it happens. Does anyone know how to disable this behavior? I looked everywhere, but have not been able to find one.

    There is unfortunately no way to stop a clip moving forward when a click. However, there is the video send to back, which appears in the menus (including context menu) to which you can assign a keyboard shortcut. This will reveal the hidden under clips.

  • CS3, CS4 and CS5 Crash when clicking on.

    Hey, can't find anywhere better ask this question.

    2.8gz 4 GB ram imac running intel latest snow leopard.

    have all 3 installed indesign cs3.cs4.c5 tests.

    However as soon as the start screen has authorized, we arrive at the new document window.

    We can choose document settings, then the page is displayed in white as standard.

    then you click ANYWHERE in indesign and Flash freeze and have to force quit.

    all n software drivers are up to date and have erased the prefrences.

    any guy more ideas?

    see you soon

    x

    Well.

    Sometimes it's obvious what's going on, but usually it is not. In this case it isn't. But.

    I guess we can say that he is waiting for the system to grant him a lock to do something, but this isn't all that clear what who or why. Although it seems to be stuck inside the TIN_Disposefont in calls to SING. I don't know anything about TIN, other than a look of 5 seconds on his web page.

    But it seems that the problem has to do with fonts and Japanese who. I think that Peter above suggests that a font may be a problem.

    So, try to remove all of your Japanese fonts. And if that does not do it, try to delete all your rules policies. See if that fixes it. If so, then add their return in half until what refine you the one who kills. Don't forget, it's only log-base 2 number of fonts, so even if you have 1024 fonts on your system, it is only 10 demi-retrecissements.

  • Audio problems and mask when reading not on no FULL quality

    Win 10
    I7 6core
    GTX980 4GB - had the same problem with the previous cards + latest drivers are used and have had the problem with older drivers.
    32 GB of Ram
    Body CC2015

    Working with and reading Dragon RED 6 K images on the timeline, the audio track falls inside and out. The meters also stop working when audio is de-energized. It matters little if the audio is the zero song recorded on the RED or if it is external audio synchronized to the top. The issue seems to only happen when the playback quality is not set to FULL quality, what quality is set to FULL rear audio playback perfectly reading Dragon 6 K sequences in real time is a bit beyond my machine if it isn't really a viable option. The question goes as far if I disable the layer with RED film and just play the audio layers so the audio recorded appears to be very well.

    According to the other forum posts, I tried compliant audio to a drive other than the one with the RED film. I also tried to move the audio to another drive as some have suggested that the issue was on the HARD drive that contains the images RED 100% reading. None of these options worked. I can never remember running into this issue Edition and playback of images of RED EPIC 5 K. And did I not the audio problem when working with lower resolution files.

    I also met other issues in trying to work with the Organization of reading other than that of the TOTAL quality. The use of masks on effects GPU accelerated often causes the whole layer to move off the coast of the viewer project or black glitter during playback. When stopped everything of fine. A quick fix is reading quality INTEGRAL, but once again this is not always possible according to the number of applied Visual effects. Also the engine of reading mercury to the software not 'fixed' the issue of the mask, but it's not really useful in practice. Have had the problem of masking for a long time and initially, I thought that it was related with colorista III, so I grew up with the red giant. They were able to reproduce the issue and noticed that it happened with the other native Ppro GPU accelerated effects, meaning that it was a body does not issue a colorista problem. Support red giant apparently passed on the issue to the agency team, but that was back when colorista 3 is out and still no solution.  


    Let me know if you need more information.

    See you soon,.
    James

    Update: CC 2015.2

    Masking question can be solved when you right click on the viewer of the program and then click left high quality playback.

    Still no update on the audio issues however.

    Update 2: CC 2015.2

    Audio is de-energized is more if you delete the audio tracks of RED Dragons. Only play .wav files under the Dragon pictures with audio in sync, I no longer get audio drop-outs. This may apply to other codecs as well.

    First step: good audio sync with the zero track.

    Second step: remove the audio tracks of cameras.

    For me, that stops my audio stall and not to come back.

    Update 3: CC 2015.3

    High quality playback is at the origin of files PNG away from their intended position and also no longer works as it did in 2015.2. Not sure about her work at all TBH.

  • Audio waveform disappears from the Source monitor after opening another audio clip

    I use Premiere Pro CC 2015 on an iMac (late 2014) of new 27-inch Retina 5 k with 8 GB of RAM.

    I've got 5 takes of the same voice that I'm editing into a simple video "How-to" recorded at the screen. I'm pass between the clamps and picking at the take, that I prefer and move it into the timeline.

    Problem is, once I open an audio file and then pass away from him to another audio file in the monitor Source Panel, the waveforms on this clip will not appear when I open it in the Source monitor. See waveforms is a unique case, unless I restart Premiere Pro. I can still hear everything and I still see the playhead moving across a green screen, but the waveforms are gone. It works fine the first time I open the clip.

    I waited about 10-15 minutes to see if it's just to take a second to reload the waveforms, but none of the clips appear in their new waveforms unless I restart the first. I tried to open a video and then come back to an audio clip. I have actually managed to do come back simply by moving the source monitor Panel in its own window separate from the table of mixing, effects, etc. but it happened again the next time I went to another audio clip and no amount of monitor source is fluttering it don't come back.

    Is there something that I am missing? I can still change course by listening to each piece of the voice-over begins, but without seeing it, it's a real pain.

    I think that this has been fixed with the latest update. No more problems!

  • Crash when pasting of segment copied from the same audio clip.

    Seriously from Adobe? I can not select a part of an audio clip, and then paste the part on another party on the same audio track without crashing? Let me guess, you want me to just noise collapse all to make it sound like an echo? Why don't pay you 2 hours lost for the registration of a file before it crashes and then having to redo everything because registration has not really saved. Or better yet, why don't you just a fall once I applied an effect and then cook the effect so that I have to restart my whole process to go into the audio track? HMM?

    Running Windows 8.1 with a 16 GB memory DDR3 on an I7 Quad Core with an SSD. All files are on the SSD.

    Been able to reproduce this on a version of internal debug on Mac, I so I was able to provide the best newspapers and for the dev team repro steps.  I've updated the bug report and later him long.  Thanks for all the help.

  • Help with 2 buttons, 2 entertainment and 2 audio clips

    Hey everybody,

    On board, I just animated in After Effects so bear with me here... I'm on a DPS project help for a friend and it left me speechless.

    I have a project to animate with 2 animations, 2 audio clips and 2 buttons. Let's call them Animation1 Audio1 and Button1. Animation2, Audio2 and Button2. I want to have the charge of the composition and wait for the user to click a button, the easy part. Now, I want to have Animation1 play with Audio1 when the user clicks Button1, but I don't want the other elements (Animation2 etc.) to play or be visible. Then vice versa when Button2 is clicked. I was able to get the elements of Button1 to work but then I still see items of Button2. The animations are sync'd to the audio files so they need to play in time with each other. I searched some tutorials on the web, but I'm probably not the right thing.

    Any help is very appreciated.

    RA

    You can bind a callback with the 'complete' event function of the audio tag and you can toggle the display property key to the function call back from events.

    IN the case of composition ready, add the code below

    {sym.$("YourAudioElementId").bind ("ended", Function ()}

    code to display the button here

    });

  • Photos and audio clips may be sent by electronic mail to droid?

    Can the audio clips and photo of the droid email? Y at - it an app that allows this?

    I use a recorder called ap to the word, it allows me to send the audio I recorded.

    You can share photos of the native app Gallery. Press menu, then share.

Maybe you are looking for