When you click to go to another article how to stop playing music.

This is the code that I use with mp3 sound. I'm looking for a code when I click on, the music stops playing. Can someone help me?

var music: Sound = new Sound (new URLRequest("OLC_-_2-Will_Mus-9618_hifi.mp3"));
var sc:SoundChannel = music.play ();
var isPlaying:Boolean = true;

stop_btn.addEventListener (MouseEvent.CLICK, stopMusic);

function stopMusic(e:MouseEvent):void {}
SC. Stop();
isPlaying = false;
}

play_btn.addEventListener (MouseEvent.CLICK, playMusic);

function playMusic(e:MouseEvent):void {}
if(!isPlaying)
{
SC = music.play ();
isPlaying = true;
}
}

I think that this code is narrow.

Sound.addEventListener (Event.REMOVED_FROM_STAGE, f);

function f (e: Event) {}
Sound.Stop ();
}

Thank you

Just add the following line inside any event handler function, which would be used when DESACT (whatever that means) before regardless of the line that sends you in another section...

stopMusic (e);

Tags: Adobe Animate

Similar Questions

  • When you click "Restart now" after Windows Update, the computer stops, does not restart

    When you click "Restart now" to a windows update... the computer cycle throughout the judgment... and not restart.

    * original title - problems with computer restart (ing) after the updates *.

    Hello

    1st thing to try is a restoration of the system in safe mode

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    If that does not read this information

    the link below is how to download and get a vista disk startup repair, which you can start from the

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    Here's how to use startup repair system restore command prompt, etc. to bleepingcomputers link below

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start

    It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu

    Change boot order it do dvd drive 1st in the boot order

    http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/

  • When you click on the button / target Url, how say the program take URL as a value in a field on the page

    I have a page with a button and an entry (MIOCAMPO) field that contains a URL. Is possible, in the properties of the button, in the section "when button Clicked/Url target", ask directly the program, take the value stored in my field? For example, for the static value http://www.oracle.com I directly write this address in the "Url target", but, when this address is written in my MIOCAMPO area, ca how? I tried these bad manners:

    (1) MIOCAMPO

    (2): MIOCAMPO

    3) || MIOCAMPO

    (4) & MIOCAMPO

    I have the button send the page and you can specify MIOCAMPO, use a branch "branch of Page identified by post. This should work for you, that destinations are in the same application.  There is also a "branch to URL identified by the element.  You could even two handsets using conditions.

    Hope this helps

    Thank you

    -Jorge

  • get a popup when you browse the stock of adobe. How do stop? !!

    I get this popup while browsing through the images. whenever I have change the page or click on anything, whether it is:

    I need it to stop. IM connected to my cc account and I already have an adobe stock.

    Ive already authorized cash, history, etc. ive clicked 'OK' given the conditions, etc.

    Please help, im going bonkers!

    stock popup.JPG

    "We have noticed that you are an administrator for a creative team of cloud. "We want to give to your standard images free team 10 just to try Adobe Stock".

    Hi Jason,

    It's not you, it's us. We are aware of this problem and wait for it be fixed some time tomorrow. I appreciate your patience.

    EBQ

  • I created a form to complete 4 page. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I have the user to have the ability to easily create muliple copies of the same 4 pages in

    I created a form to complete 4 page in Acrobat. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I want the user to have the ability to easily create multiple copies of the same 4 pages in a single file. It is possible with Acrobat? I use a PC.

    It is possible using models and JavaScript, but if it is to work with the player, users will need to use the desktop version (Windows/Mac) of 11 Reader or CD player. Here is a link to an older article which explains the basics: Planet PDF - a lesson in the templates for Adobe Acrobat

    Note that this is a bit outdated, but it should help you get started. If you have any other questions, post them in the Acrobat JavaScript here forum: JavaScript

  • How to hide a TextField when you click another button

    Hello!

    I was able to generate a TextField appear when you click a button, but when I click on another button, to display further information, I have still the first TextField shows.  I had a quick glance, but not managed to find something to help me get the first to disappear.  Can anyone provide ideas for this?

    The code I am using to display the TextField object is:

    Button10.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    var fl_TF:TextField;
    var fl_TextToDisplay:String = "send the right projector/screen disply";

    function fl_ClickToPosition(event:MouseEvent):void
    {
    fl_TF = new TextField();
    fl_TF. AutoSize = TextFieldAutoSize.LEFT;
    fl_TF. Background = true;
    fl_TF. Border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF. Text = fl_TextToDisplay;
    addChild (fl_TF);
    }

    Thanks in advance

    use:

    Button10.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    var fl_TF:TextField;
    var fl_TextToDisplay:String = "send the right projector/screen disply";

    function fl_ClickToPosition(event:MouseEvent):void
    {

    if(fl_TF&&fl_TF.parent) {/}

    fl_TF.parent.removeChild (fl_TF);

    fl_TF = null

    }

    fl_TF = new TextField();
    fl_TF. AutoSize = TextFieldAutoSize.LEFT;
    fl_TF. Background = true;
    fl_TF. Border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF. Text = fl_TextToDisplay;
    addChild (fl_TF);
    }

    Thanks in advance

  • not ask web pages uddenly that appears when you click on a link to

    I'm on a Web page that I want and I click on a relevant link for more information about this page. The link opens correctly but so is another page that I did not and has no connection or interest to what I do. Then I have to cancel the unwanted page and one remains open. It's very annoying and can you please tell me how to stop it. It only started happening recently.
    Thanks - I hope

    I understand when you click a Web link within a site, two Web pages open instead of one. This looks like some kind of Adware and I would recommend looking for malware or reset Firefox (please understand that this will restore Firefox to its default values, and all customizations will be removed in a folder called 'Old Firefox Data' on the desktop)

    Troubleshooting Firefox problems caused by malicious software and the Preferences of Firefox reset to troubleshoot and solve problems

  • Why can I not see the details of my question, when you click on it in my profile?

    I've created a new issue earlier this week, and apparently I have a question, based on my profile. When you click on the link 'Question' I see a result search failed. Why can I not see my question (to check if an update)?

    Thanks for that - now I see my original question, which remains unanswered (except someone telling me to use another browser!). You are also able to help with this one please?

    (I can send screenshots to illustrate the problem, if it helps...)

    Soon, K

  • When you visit a particular site my user name is entered automatically when you click in the required area. I want to avoid this, how?

    This site requires a username to be filled in a specific area and in another box, you enter a series of numbers generated by a generator of numbers (so not a password - different series each time that you open a session).
    However I do not want my user name appears automatically in the first box. Trying to change that in the security settings (extra-options-security), there is a password section where you can choose any exceptions to the rule of the memory (if the box remember is marked). When clicking the exceptions button, the url of the site I'm talking about is not displayed, and it cannot be entered either, since you can't delete here.
    When you click on the option "saved passwords", nor the site, nor the username is listed. I think I've read all the help sections regarding usernames and passwords, but found no solution.
    How can I avoid this username (so only a user name - not the usename/password combination), appear in the box?

    Click on the box, hover over the drop-down menu with your mouse, if you select the word you want to delete, and then press the delete key. If Firefox fills automatically in forms of control

  • Crash when you click some links (I crash report #)

    FF hangs when you click on a link (sometimes random links, but can be reproduced reliably). It happened when trying to submit the issue of the accident.

    Easy way to reproduce:

    Visit: http://www.sciencedaily.com/releases/2009/04/090418084813.htm

    Scroll to the end of the article, click on the link to "" more information is available on: http://www.microtransat.org/".

    Which should cause the crash.

    Alternative method (if you want a reliable site):

    Ask a question of accident on this website (mozilla), click on "Click here for detailed instructions" in the "Crash IDs" section.

    Insta-crash every time.

    Reinstalling FF, did the trick! I even used my old profile and it works very well.

    It seems that the latest update of FF corrupt something.

    Thanks for the help! I don't honestly think a reinstall would fix anything, as it rarely does. Here, it's rare treats!

    Thank you all!

  • Explorer Windows has stopped working when you click FLVfile

    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    Explorer Windows has stopped working when you click FLVfile / video clip downloaded by REALPLAYER

    Hello

    What version of the windows operating system is installed in the computer?

    I suggest you to see link and check. (That applies to windows vista and windows 7)?

    Error: Windows Explorer has stopped working

    http://support.Microsoft.com/kb/2694911

    Note: After checking in the clean boot, follow step: 7 article to reset your computer to normal startup.

    Note that it takes as much time to do the upgrade as to reinstall the operating system. In addition, some of your custom Windows settings may be lost through this process.

  • When you click on all programs more say they are empty.

    Don't know what my kids did to our Windows XP laptop, but all the icons disappeared and when you click on all programs more say they are empty. I was wondering how I can return my games included with Windows for example.  I went on the Panel & clicked on add components, Accessories & utilities.  All I went to games on the internet.  No spiders, hearts, free cell, etc.

    Hello

    The following article might be useful:

    When you point to "Programs" on a Windows XP-based computer, the program list does not appear, or the list of programs is empty

  • Why locate browser when you click on the link in the email in Outlook?

    I wonder what is happening and how I can stop that. Sometimes on my Windows XP Tablet that has been recently reinanstalled. This doesn't always happen. Sometimes, if there is a URL link in an e-mail message in my Outlook Inbox, when I clicked a box appears to want me to identify my browser. So I need to click on my computer in the box, then C: and then programs and find Internet Explorer.

    Come on! How and why is it supposed to be forgetting what I have always used a my browser? I have no other browser on this pc.

    Hello
     
    1. what version of internet explore is installed on your computer?
     
    You must select Internet Explorer as the default browser. See the steps listed in the article below.
     
    You receive an error message when you click a hyperlink in Outlook
    http://support.Microsoft.com/kb/310049
     
     
    I hope this helps.
  • Problems with the .exe file programs + System Restore does not respond when you click

    I have Windows Vista. This problem started a week ago. I tried at first to use my "ccleraner" already installed, but this program does not open when you click on it. I was asked to choose the program that the application to use to open it. This has also happened when clicking on itunes. My avast program when you click also asked which application is required to open it. When it finally scanned my system it does no propblems. In addition, I tried to turn on windows defendrer as he told me that it was off. Clicked on 'Turn on..' and nothing happened. Help!

    Hello

    See the following message to solve the problem of .exe if necessary once you are sure that the system is clean.

    Try Mode safe mode with networking - repeatedly, press F8 that you start.

    The best two methods allow scanners to run and/or AV.exe out of the way or removing.

    1.
    CTRL SHIFT ESC - task manager OR right click on the taskbar - task manager

    Process tab - complete the process on AV. EXE and continue with the uninstall Guide.

    If necessary use start - computer or Windows Explorer to navigate to

    C:\Program Malwarebytes Anti - Malware\mbam.exe or where it is installed - if
    necessary right click on the shortcut of Malwarebytes - Properties - tab - target line to see where it
    is installed.

    Right-click on it and rename it to ZZMbam.COM (or something different than now), then
    Double-click it and run it like this. You can rename it back later. Do the same with others
    programs as needed. Use this method for other necessary - DO NOT ASSUMER one
    program removes all or that there is no other malware.

    ---------------------------------------------------

    2.
    Another method is to use them:

    Use Process Explorer to "Suspend" the process will not stop

    Then use AutoRuns to delete the malicious program startup items.

    Now use UnLocker to delete the files in the malware.

    You may need to do a file at a time.

    Process Explorer - free
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    AutoRuns - free
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    UnLocker - free (do not install the adaware Ebay)
    http://www.Softpedia.com/get/system/system-miscellaneous/unlocker.shtml

    AV.exe

    ==============================================

    There are MANY varieties of these with many names, but all can be eliminated with the same methods:

    Win 7 Antispyware 2010 XP Internet Security 2010 and Vista Antivirus 2010 is rogue antivirus.
    scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Full Vista: occasional error message: "no answer" (when you click on a link, on or off line)...

    Vista Ultimate. At completely random times, I get a message that the page I click (online or offline) "does not. The screen turns white (translucent) and I am then presented with an error message with the options 'expected response' or 'stop' the process. I can still see the original page (in the background) where I clicked initially to go to another link.  These errors are happening more frequently now. The system effectively hangs at this point.

    Norman Solomon, Brookline, VT

    E-mail address is removed from the privacy *.

    Vista Ultimate. At completely random times, I get a message that the page I click (online or offline) "does not. The screen turns white (translucent) and I am then presented with an error message with the options 'expected response' or 'stop' the process. I can still see the original page (in the background) where I clicked initially to go to another link.  These errors are happening more frequently now. The system effectively hangs at this point.

    Norman Solomon, Brookline, VT

    Email removed for privacy

    It is not an error so it's just to tell you that, due to low memory, the program that you are using is not respoding or takes to respond when you click Open program, it gives u this menu to move forward.

    therefore:

    You can either increase your memory or pagefile or having to run fewer programs at the same time. If you are running many programs you can remedy this by minimizing your startup programs and also make sure that your system is clean.

    That's why

    scanning using the preforms

    http://www.Malwarebytes.org/

    http://www.systweak.com/AntiSpyware/

    http://www.avast.com/en-GB/free-antivirus-download

    Make sure that your system is free of any virus, Trojan, spyware and malware.

    Then, get rid of unnecessary files using ccleaner

    http://www.CCleaner.com/

    then...

Maybe you are looking for

  • Use attributes TDMS in VBscript DIAdem

    Greetings, I wrote the data set such as TDMS attribtutes properties and I would now like to call these attributes as variables in VBscript DIAdem.  I searched that help still does not find the proper syntax to call a PDM attribute. Thank you!

  • Why my HP Desktop Vista keep delete my C6180 printer drivers?

    My HP desktop computer continually removes my drivers PhotoSmart C6180.  I visit the Web site and reload.  Then, he continually tells me that it cannot find PhotoSmart Essentials.  It asks me to insert my disc, but it is for XP and will not work.

  • Still another Zoo Tycoon 2 problem with windows 7!

    OK, after trouble with the terrible error box "needs 256 MB of memory, 0 MB memory available to run" when you try to start the game, I contacted Microsoft customer service. It seemed to clear up the problem after doing what the tech guy said to do, b

  • Registry settings for iTunes drivers missing.

    I tried to open iTunes and got this error message until I could open it: the registry settings used by the iTunes for importing and burning CDs and DVDs are missing.  This can occur as a result of installing other CD burning software.  Please reinsta

  • BlackBerry Smartphones BB Bold 9000 Bluetooth file transfer problem

    I use 9000 "BOLD" and it's my first BB device. I don't have the card memory, and I want to transfer media files like songs and video from another mobile device to mine. I want to transfer these files to the internal memory of 1 GB that has "BOLD". Bu