Stop the script of the game action 3 for mp3 on layer

I have this play the wrong way to write a stop for mp3 on layer.

I have buttons and sound in a movieClip.

I'd give outside movie clip the instance name

Thank you

play_btn.addEventListener (MouseEvent.CLICK, playSound);
stop_btn.addEventListener (MouseEvent.CLICK, stopSound);

function playSound(e:MouseEvent):void {}
This.Play ();
}

function stopSound(e:MouseEvent):void {}
Stop();
}

The code that show you should work, so you might have some problems of implementation.

For the stop error, you should go in your publishing settings, then select the option to allow debugging for the error includes a line number for what is causing the error.  A 1009 error indicates that your code is trying to target an object any does not exist for as far as the code sees it... that can be due to a number of reasons, such as the assignment of code in a frame where the object targeted does not exist.

For the second error, it seems to be a problem loading (or possibly find) the file.  Made his debut playing on its own when you first run the code?

Usually a mistake any will prevent a file works properly, so it's just a matter of setting a single one of them.

Normally, you don't have to wait for an audio file load completely before running a reading order... which woiuld be counterproductive to the concept of sound diffusion.  In theory, a game following command that runs a command to load but the sound starts until a sufficient buffer exists.

Tags: Adobe Animate

Similar Questions

  • during the game Dungeon Siege Broken World, it stops the game and I get the exception error

    Original title: exception errors

    during the game Dungeon Siege Broken World, it stops the game and I get the error of the exception that the program brings together except for the tour program off that I have to start

    Hi irishlaird,

    1. What is the full error message that you receive?

    2. did you of recent changes on the computer?

    Check out the links and try the steps mentioned below.

    http://garage.gaspowered.com/?q=node/9419

    http://garage.gaspowered.com/?q=node/6386

    http://garage.gaspowered.com/?q=node/5573

    http://garage.gaspowered.com/?q=node/5357

    If the previous step fails, then validate your request on the website of the game provider.

    http://garage.gaspowered.com/?q=Forum/169

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to stop the abandoned operation messages for the opening of the games on Facebook?

    Original title: how to stop the abandoned operation messages

    When I connect to my facebook and began to open the game or any game I get this error operation failed and it want start the game... I can open facebook and update the games, but it won't play...

    Hi Annspikes,

    1. what browser do you use?

    2. This only happens with Facebook game?

    3. you remember to make changes to the computer before this problem?

    If you use Internet Explorer, you can read the following article and check.

    Why do I get an "Operation aborted" error message when I visit a Web page in Internet Explorer?

    Hope this information is useful.

  • I have bee receives all types of error codes while playing internet backgammon. Who stops the game and I have to restart with a new opponet often. error messages

    My problems are with the error codes that appear in an internet backgammon game.  It's so frustrating especially when you win.  It gives you the possibility of new opponet or quit smoking.  I have received several different error codes, not just one.  What is the problem here.  Desperately love the game not the codes.  I'm a sore loser who sends these codes or what?

    Hello
     
    1. What are the error codes that you get when you play Backgammon Internet?

    2. were you able to play the game without errors earlier?

    3. what changes have been made to your machine before the problem?
    4. are you referring to the Games Explorer Internet Backgammon ?
     
    Search for related errors in the event viewer .
    Post back with your answers
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • The games are great for monitor

    I have download hidden object games and the game is too big for the monitor.  How can I adjust it so it will be good to my screen?

    Hi kburn7934,

    Thank you for using answers.microsoft.com

    Sounds like a fit for display settings and the resolution of the screen could help get this game to a visible level.

    Here's the article that is involved in making the necessary adjustments to display.

    http://windowshelp.Microsoft.com/Windows/en-us/help/617624ee-08f3-4AFF-9713-5e84a9674a261033.mspx

    In addition, for screen resolutions see:

    http://windowshelp.Microsoft.com/Windows/en-us/help/0386b009-5F30-45c7-80c8-ff0395cc24091033.mspx

    Please check this information and let us know if there are any other necessary assistance.

    Kind regards

    Debbie Microsoft Support Engineer answers visit our Forum of Microsoft answers Feedback and let us know what you think.

  • HP Deskjet Ink Advantage 1515: stop the test page printed for all-in-one printer, HP Deskjet Ink Advantage 1515

    How can I stop my HP Deskjet Ink Advantage 1515 all-in-One printer to print a test page everytime I STARTED printing?

    Hello JoshSimon ,

    Welcome to the HP Forums.

    I see that you have a problem with the printer printing before you print a test page.

    If you turn off the printer at the end of the day, please do not.  Turn the printer on/off will result in printing a test page.  If you are concerned about the printer lost power, and that's why you stop, the unit actually built in sleep/stand mode that will kick in when you are not using the printer.

    Once a print job is sent to the printer it then wake up and do the task at hand.

    In addition, make sure you have the printer power cable connected directly to a wall outlet and not a bar/power strip. Here is a document that uses a LaserJet printer for example, but it is intended for HP products in general. Please click the link which explains the problems when connected to an uninterruptible power supply/Strip/surge protector power.

    If troubleshooting doesn't help not solve your problem, then I would say call the HP Technical Support to see all the other possibilities for you. If you call in North America, the number is 1-800-474-6836 and for all other regions, please click here: click here.

    See you soon,.

  • Stop the JavaScript action game

    Hi everyone_

    I have a JavaScript code to create a new custom document

    But if the active document has not yet been saved, this script only

    create new document , BUT will ORDER other actions.


    Now, is it possible? (I hope so guys)


    Please, see photo below...

    Thank you in advanced for your help.

    Captura.PNG

    What about a simple conditional that determines whether to execute the action?

    var valid = true;

    If (app.documents.length > {0})

    app.doScript ('Create The File", (the set name));

    }

    else {}

    Alert ("No Document Open!");

    valid = false;

    }

    if(valid && App.activeDocument.Saved) {}

    app.doScript ("Run The Rest of the Action", (the set name));

    }

    ElseIf (valid &! app.activeDocument.saved) {}

    Alert ("save your document!");

    }

    I agree that this would be better done through JS. But it is a simple solution that bypasses the inability of measures to use conditional statements.

  • How can I stop the game clown that opens with firefox

    When I open Firefox browser a non-stop 'clown whistle' started playing and I need to know how to stop. Internet Explorer works fine. Norton Security claims no virus on my system.

    This has happened

    Each time Firefox opened

    I opened my firefox browser

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    It is a problem with the extension "Cool Previews".
    See [tiki - view_forum_thread.php? local = en-US & comments_parentId = 678288 & idforum = 1]

  • How to stop the game unsecure information visit https sites?

    As ol ' IE fact when you visit https sites I'd like to interact only with information secure via a secure connection... Impossible to find a setting that allows me to do, ' cept for output/block sites.

    enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named security.mixed_content.block_display_content. Double-click it and change its value to true.

  • EQ2 Station Launcher and EQ2 maps will launch not game fatal error comes up and stops the game activation...

    SOE EQ2 game will not launch! In addition, EQ2 maps will not launch... I had no problem until I upgraded to Window 7 Pro... I have a computer of video cards Radeon HD 4860 dual Quad Core, 64 bit...

    Problems of Troubleshooting program compatibility in Windows 7 Andre Da Costa http://adacosta.spaces.live.com | http://www.ActiveWin.com | Microsoft MVP

  • Stop the realization of revenues for a particular Transaction in AR

    Hello

    I have a scenario where a client pays upfront for a service item / which will provide us in the future every month. Accounting rules (fixed amounts such as 12 months, 15 months) allows us to recognize revenues in several bouts. Lets say any such transaction took place January 1, 2015, with a value of $1200. Since we use the accounting rule of 12 months, this amount will be recognized back asd $100 every month. Then at the end of February, customer wishes not to receive this service from March. That's why we have to stop recognizing the revenue for the 10 months left in the future. (we are in R12.0)

    Ledger entry from 1 to January 1

    Dr. debtor 1200

    Unearned income CR 1200

    Journal entry of 2 in 1 Jan

    Dr. cash 1200

    CR 1200 debtor

    Ledger entry from 3 to 1 January

    Dr. Uneanred revenue 100

    CR 100 recipes

    Input3 accounting will be generated for all 12 months. I need to stop this accounting of March writing leave. How to do this?

    Thank you

    Lakshith

    Hi all

    Thanks for all the inputs. I found the solution. We need to the credit of the transaction that will reverse all the entries created from March to December.

    Must first set up the profile option: AR: use invoice accounting for credit memos.

    Can credit the transaction using the LIFO rule.

    Thanks to all for the replies.

    Kind regards

    Lakshith

  • How can I stop the transfer of emails for those who are not selected

    I don't know if my hotmail works properly... cause it sends e-mails to people who are not selected for?

    Mary

    Hello

    As you use Hotmail and Hotmail-related question you have posted. I suggest that you post you query on the Hotmail forum for assistance:

    http://windowslivehelp.com/product.aspx?ProductID=1

  • Qosmio X 70-A-10N turn off when I play the games

    Hello

    I bought 2 months ago Qosmio x 70-a-10n with geforce GTX 770 M. I read everywhere that it is a computer game. Months ago, I installed F1 2013 and start it. After 20 minutes of play my PC just turn off and never again. (like this guy here - http://www.youtube.com/watch?v=lZmeMyu5Cto).

    Can I send my PC to the service and then they change my motherboard (maybe). 1 week ago, I took the service and see that the computer still has a problem with the temperature. Early 2013 F1 for 5 minutes only and see with Speedfan, that the temperature of the GPU goes to 60 years and I stop the game, because that think the pc is overheating so it shuts off again.

    If I want a pc for movies or on the internet, I'll buy another pc for less money. :((((
    I am a little angry because I like to play games, but does not have this problem. What can I do to fix this? :((((((((

    Excuse me for my English!
    Thank you

    Computers laptops Qosmio are offered by Toshiba for years. I don't know how long, but perhaps a dozen years and this laptop has been on the first day, designed for multimedia and games so that every Qosmio laptop has a powerful graphics card.
    I don't really know what the problem with your machine and why this happens, but try it with different games and close down unnecessary applications before starting the game.

    Use laptop on the desk and don't forget the laptop can be cooled properly. Temperature of 60 degrees is certainly not the critical temperature so you don't have to interrupt your game.

    One question: are you using the original pre-installed OS that you got with your laptop?

  • Disabling the game Mode with Windows Vista Edition family basic

    I'm trying to update my antivirus definitions but I'm in play Mode what is it and how to get out. I am confused I tried snooping around the Panel control, but without success

    You use ZoneAlarm? Because ZoneAlarm has a game mode, using which you can block all direct and reverse connections. Once you stop the game mode you can take back to noraml navigation on internet, downloaing, update software anti-virus etc that will keep the guardians

  • Please help me improve the automator action

    Hello to everyone.

    I did an automator action to create a new note

    the term {parameters}

    text referred to the value of the noteName (display dialog "Make a Note" with response default icon 1 "")

    Tell application "Notes".

    Set thisAccountName to "iCloud.

    Note the new to the file 'Notes' of thisAccountName account with properties {name: noteName}

    tell the end

    Back entrance

    end of race

    It works like this

    Now, I would like to improve it in this way:

    -do a wider window for text entry can see all of the text, not just a few words in one line

    -use a default account for a new note

    -use a paperweight as a default text

    do a wider window for text entry can see all of the text, not just a few words in one line

    You have almost no control over layout "display dialog". Your options are:

    (1) use the Automator action "Ask for Text", which performs a function similar but with a larger text box.

    2) switch to another system than Automator (for example AppleScriptObjC) that gives you a user interface controls complete, so that you can design your own dialog box

    (3) hack entry display dialog box to force a multiline input field:

    the value the noteName to text returned of (display dialog "Make a Note" with default icon answer 1")

    ")

    Providing the default answer which is several lines (empty), the dialog box expands to show this. It is not perfect, but the work effort is virtually 0.

    -use a default account for a new note

    I don't understand what you mean here by "default account".

    -use a paperweight as a default text

    Just:

    the value the noteName to text returned of (display dialog "Make a Note" with default icon response 1 (get the Clipboard as text))

Maybe you are looking for

  • Pavilion X 2 running as Windows 10 does not detect any WiFi networks

    When starting the Tablet this morning, I received a message "not connected - no connection is available. My home network is up, running and accessible by other devices co-located, including the smartphone with which I'm making this post. Troubleshoot

  • How to open files (.dat) famos on tiara?

    In my request here I m using a data logger Kvaser Memorator professional for logging tool can signals using the Kvaser Memorator Professional Setup Tool software. By extracting the files saved in the eqquipent map, I have the following options for ex

  • Windows XP Pro SP2 32-bit: when Microsoft Updates downloads SP3 and install it. How can I fix it? Thanking you in advance.

    I have Windows XP PRO 32-bit SP2, and when Microsoft Updates downloads SP3 for me and I install it, it stops at about 1/3 of the way and says: "unable to load the catalog files. He also partially installed SP3 and Windows XP PRO may not work correctl

  • File folders

    I'm loading the MP3 files from my pc to the folder 'album' of a clip + using drag & drop.  No problem with CD commercial, all tracks appear under the original title of the album.  All other tracks, as those converted from audio tapes, carry into fold

  • the laptop does not light

    Hello Irecently tried to turn on my Hp Pavilion DV5000 laptop. The blue light but the computer is not. Do you know what the problem is. Thank you