removeEventListener in Adobe animate CC does not work

Hi, I'm removing an event listener in Adobe animate CC, but it won't work.

While removeAllEventListeners() works as expected, this.removeEventListener ('click', functionName.bind (this)); is not and I just can't figure out why.

Here is my sample code:

This.Box1.addEventListener ("click", moveMe.bind (this));

function sensors() {}

This.Box1.x += 10;

}

This.Box2.addEventListener ("click", stopMove.bind (this));

function stopMove() {}

this. Box1.removeEventListener ("click", sensors); I also tried this.box1.removeEventListener ("click", moveMe.bind (this));

}

Any suggestions?

Thank you!

Binding approach has had problems in other cases, maybe that there is a problem here too? Try this approach:

var _this = this;

This.Box1.addEventListener ("click", sensors);

function moveMe() {}

_this. Box1.x += 10;

}

This.Box2.addEventListener ("click", stopMove);

function stopMove() {}

_this. Box1.removeEventListener ("click", sensors);

}

Tags: Adobe Animate

Similar Questions

  • Why after reinstallation of vista, no adobe flash player does not work.

    Before a reinstall of Vista, I use Adobe flash player.  Now, after having to reinstall Vista, Adobe flash player does not work. Can I get the videos to play?

    Hello

    1. try to watch videos online are you using Internet Explorer?

    2. How do you reinstall Windows Vista on your computer?

    3. what happens when you watch her watch flash videos?

    4. have you installed flash player after you have reinstalled Windows Vista?

    To work on the issue, refer to these methods.

    Method 1:

    If you are facing the question about Internet Explorer, see the following links.

    The video problems when you use Internet Explorer

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

    Why Adobe Flash does not work in Internet Explorer?

    http://Windows.Microsoft.com/en-us/Internet-Explorer/help/Adobe-Flash-not-working

    Method 2:

    You can check if uninstall and reinstall the flash player help.

    Uninstall and reinstall the flash player and check if that helps.

    Uninstall Adobe Flash Player. Use the link below to download the flash player uninstall tool. Follow the steps mentioned in the link.

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    See section provided below for instructions on troubleshooting.

    Troubleshoot Flash Player installation | Windows

    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Note: The third-party products or services mentioned here are manufactured or provided by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

    Hope the information is useful.

  • Adobe Flash Player does not work for 64-bit browser

    If Adobe Flash Player does not work for a 64-bit browser, they should stop the company, because if it doesn't work why bother to use it, I'm good?

    1. use a 32-bit browser
    2 install 64-bit of beta from labs.adobe.com
    3 wait for the release of the 64-bit version of Adobe

    'Maryam Ziad' wrote in the new message: * e-mail address is removed from the privacy... *

    If Adobe Flash Player does not work for a 64-bit browser, they should stop the company, because if it doesn't work why bother to use it, I'm good?

  • First Adobe Pro CC does not work after update code 0xc000001d

    First Adobe Pro CC does not work after update code 0xc000001d

    W7 OS 2

    Hi Gernots,

    For a fix, update for first Pro CC 2015 (9.2).

    Thank you

    Kevin

  • My Adobe Creative cloud does not work on windows 10 more. What should I do?

    My Adobe Creative cloud does not work on windows 10 more. What should I do?

    can you open your desktop cc app?

    If so, log out and then back to your client application using the adobe id to pay for your subscription in cc: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    If not, reinstall: https://creative.adobe.com/products/creative-cloud

  • We try to download Adobe Reader, but Adobe Application Manager does not work.

    We try to download Adobe Reader, but Adobe Application Manager does not work.

    Hello

    You can simply download player evoking the following link.

    Adobe - Adobe Acrobat Reader DC Distribution

    Concerning

    Sukrit diallo

  • My Adobe Acrobat widget does not work. Whenever I try to convert a webpage to PDF, a window opens saying that "any version of Acrobat can be found, install Acrobat 11.0.09 or update version to use the extension create PDFs.» I downloaded the last drunk ve

    My Adobe Acrobat widget does not work. Whenever I try to convert a webpage to PDF, a window opens saying that "any version of Acrobat can be found, install Acrobat 11.0.09 or update version to use the extension create PDFs.» I downloaded the latest version but iut still does not work. I use a MAC and Chrome as a browser.

    Can you help me?

    If you use Adobe Reader, you will not be able to create a PDF file. Adobe Reader cannot create a PDF file, modify/edit the content of a PDF page or export the contents of a PDF page.

    For those, you must use Acrobat or one of Adobe's online subscription services.

    Be well...

  • my adobe reader software does not work properly always receive a message (not), why?

    my adobe reader software does not work properly always receive a message (not answer), then on the right Circle loading then suddenly stop and then become white background as shown below, why?

    I can't read any pdf file and I try to update the adobe reader and acrobat software, but nothing has changed.

    Untitled.png

    My (certainly old and slow) system made too the first time I opened 11 player, but he "thawed" after fifteen seconds, (an eternity in computing time, I know, but it has finally opened completely) what you see to the right is the "Tools" palette during initialization. That's exactly where mine would freeze at startup. Once he finally opened fully, I clicked on the "Tools" link at the top to close the Panel, and I opened and seen a document in this way and then closed reader. Now when I open the drive, the tool palette is not initialize and it opens immediately.

    Restart and prior to open what any else, open the drive. When you open it, DO NOT try to do anything with it until it fully opens, do not click on anything that it either, do not try to switch to another app give it time to open up completely and then click the tools link to close. Then open and view a document and close it. Close the player and reopen it. the tools Panel should stay closed and reader should open completely immediately.

  • MSG for error ProgramFiles\SearchExtensions\Client.exe & Avira does not update & Adobe Flash Player does not work

    Hello.  My computer is running XP.  My cpu is Intel Core 2 Duo processor.  Sometimes I use Firefox and Chrome.

    At startup, there is always a prompt that shows "C:\Program Extensions\Client.exe Search make sure that you type the word correctly and try again".  With it, there is a white rectangular black box with label on top "C:\WINDOWS\System32\svchost.exe.  With her, I also noticed my antivirus Avira will be not updated.  It says "Your PC does not work properly", and when I click on "Difficult problem", it says "error" and does not always update.  And with her also, I can't update Adobe Flash Player.  It downloads, and then when I click "Run", he always says 'error' could not retrieve the data it needs.

    I tried to uninstall and install new Avira, and it's always the same problem.  I am also afraid that I can't watch my favorite videos from YT because it requires an update to Adobe Flash Player.

    I searched the internet for problems Client.exe and svchost.exe, and in one of the answers with Client.exe and taskeng.exe problems microsoft, I tried to follow somehow solutions step by step.  They require that you are looking for a task scheduler or folder tasks and I discovered my computer is not all that.  Any Scheduler task and in System32, no task folder.  Because you need to search for files with "rocket" in there and delete it.  Others find it useful.  I don't know if this is the case even with my computer.

    I also try to do a system restore.  He has yet to eliminate the prompt error Client.exe and svchost.exe.  After I did, there is a message box that says "Avira CCPLG. XML file is missing.  I searched the internet, but nowhere, you can download this missing file.

    I hope that my computer has no need of a reformat.  I hate reformatting.  Also, what is ADWCleaner?  Is it advisable?

    Help.  I need "simple" solutions  If you have any other questions regarding this problem, please bear with me, because I'm not a techie.  Hope that everyone out there can help me.

    Thank you.

    Oh Yes...

    Looking at a different Google search results, in addition to deleting "rocket"-oriented tasks, they mention using Autoruns to delete any "rocket" focused on the startup items that you may have:

    https://www.YouTube.com/watch?v=mKchQdXjuPA

    It is a good idea and you can get Autoruns here:

    https://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    Autoruns is the program Windows msconfig on steroids.

    Just download it, unzip it in our office or somewhere you can find it, run Autoruns.exe, enlarge the window, you can see everything and wait until it finishes populating the list of entries.

    When the Autoruns is finished scanning your system, it will say "Ready" in the lower left corner.  Autoruns can be a little intimidating to first if you have never seen it before because it displays a lot of information.  You are really interested only a few sections.

    Look at everything and log tabs and you can also see your scheduled tasks.  You can also click on the "Find" button (looks like binoculars) and looking for something to do with the 'rocket', and delete them. "."

    The items that appear in a color shrimpy came not "signed" with third party programs, that you have installed, and are not usually a problem.  The manufacturer just didn't "sign" their files properly.

    The items that appear in a yellow color are the entries that point to a file, the path, the place that doesn't exist so that they are a bit suspicious because they probably don't make sense more.  I usually just delete those yellow, but sometimes they come back.

    Autoruns does not install anything on your system - it just runs on request, so you can keep around or remove it when you're done (nothing to uninstall).

  • On our 32-bit Vista, adobe flash player does not work when downloading

    We also have a 32-bit windows vista computer, and when we try to use a program that requires adobe flash player, it says to download, show programs it is downloaded and whenever we download, it appears, but does not work. What should we do, thank you

    Hello

    This can help you:

    Download and run the Flash Player uninstaller program.

    http://helpx.Adobe.com/Flash-Player/KB/uninstall-Flash-Player-Windows.html

    Then download and reinstall Flash Player; After unchecking the option Google toolbar:

    http://get.Adobe.com/flashplayer/?promoid=BUIGP

    If the problem persists, you may want to ask in the Forums of community Flash Player:

    http://forums.Adobe.com/community/flashplayer

    See you soon.

  • Adobe Flash Player does not work in Win 10

    I installed Windows 10 at the end of July and immediately noticed that I couldn't see all the videos and Adobe Flash Player does not seem to work, but the noise was present.  The video screen was a series of green lines and nothing visible.  I tried 10 IE and Mozilla Firefox, and neither wouldn't work.  I couldn't get any help from Microsoft, and on the community positions, is not any problem similar to mine.  Finally back to Win 7 Professional (easy to do) and no problems at all with the videos.  Ongoing MS do pop - ups ' "remind me to install Win 10, but until I think they corrected this problem, or at least acknowledged, I'll stick with Win 7.

    In previous versions of windows, the adobe 'hardware acceleration' caused green screens often, try to change that if you can Flash W10.

    See - https://forums.adobe.com/thread/1927939?start=0&tstart=0 and follow up on the link for details and other things to test. Don't know which applies directly to W10 however, but it can at least give a few pointers.

  • Adobe Flash Player does not work

    I have down loaded many times flash player and adobe says it is now running, but it does not work. It does not appear in all programs, but if I remove programs it is there.   My printer is connected wireless and prints fine, when I try to scan the printer and the computer says that the other is not there.

    Flash Player is a web browser instead of a standalone application, so it is not supposed to appear in all programs. To check that it is correctly installed:

    -Go to Start-> Control Panel-> programs and features and check that it is registered.

    -Open Internet Explorer and go to Manage Add-ons , select all add-ons from the drop-down list on the left, and then select toolbars and Extensions and check that you have Shockwave object shown at right and that it is enabled.

    -Go to a Web site that uses Flash Player (like YouTube) and verify that you can watch videos, etc.

    How your last comment regarding your printer/scanner related to Flash Player does not?

  • Adobe Acrobat 11 does not work with Office 2016

    Hello

    I have Adobe Acrobat 11 and just upgraded to the 2016 2013, after the upgrade, office in Office applications integration does not work. I tried to reinstall with no luck.

    It's a question of knowledge, or y at - it an update to make it work?

    Thank you

    Julian

    Hi julianhaines,

    Acrobat XI is not compatible with MS office 2016 https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

    Kind regards
    Nicos

  • I have a license for CS3 Design Premium, but not drive. Exactly where can I download the software? The solution on the Adobe Web site does not work...

    I have a license for CS3 Design Premium, but not drive. Exactly where can I download the software? The proposed solution on the Adobe (CS3 products download) website does not work...

    If the page that you are connected does not work, then it should so what happens when you try?  It is possible that it could be a simple matter of enable you cookies or try a different web browser.

    You can also try to download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS3 and CS4: http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

  • Unable to get to install Acrobat, Adobe Application Manager does not work!

    How can I get Acrobat to install correctly? Whenever I try, I get the Adobe Application Manager:

    Screen Shot 2014-09-16 at 12.43.44 PM.png

    Cannot select anything on the menu drop-down superior. and if I click on accept... nothing happens!

    Hi Shotgun981,

    Add to that Jeff & Sheena share, do you have any other product installed on this machine? Is it works fine? Can you please navigate to the below mentioned location and advice if it worked for you or not.

    / Library/Application Support/Adobe/SLStore


    Rename the documents mentioned above in SLStore_old and try and launch Acrobat. If this does not work, please ensure that we have all the permissions on the folder that is mentioned in the article. (Note: this article is only for sharing the location and the real problem is not described in it)

    Configuration error 16. CC, CS


    (Note: this article is only for sharing the location and the real problem is not described in it)


    See you soon,.

    Michael Sharma

Maybe you are looking for