Can I disable hit testing in Flash button?

I recently created a Flash game which is the extreme slowing down on the greatest levels. Use Adobe Scout with a version of the game that has Advanced telemetry activated, I learned that, on these levels, what we call 'hit test button' is engulf a huge piece of my game processor cycles - we're talking about 25 to 33 percent or more.

A few searches on Google directed me to this thread over 2 years, in which Mark Shepard noted that the hit test button is a process legacy meant to support the old class SimpleButton. He said that this led to the slowdown in scenes with many objects from the display list, and there is no way to avoid it otherwise than to reduce the number of objects in the display list.

Other users Chorus to say that the hit test button moved not when they switched to using touch rather than the events of mouse events. However, my game is for PC, and as such, I can't use the touch events rather than mouse events.

So my question is, basically: in 2 years because this problem has been reported, did you do something to allow programmers to turn off Flash button hit-testing? (Like, say, allowing us to set a flag to supportSimpleButtons to false to disable the button hit testing process?)

It answers the question, but it was not sufficiently clear.

Yes, disable mouse interactivity will stop the hit test.  to stop the interactivitee use:

whateverobject.mouseEnabled = false;

If this object is also a container of displayobject, also use

whateverobject.mouseChildren = false;

Tags: Adobe Animate

Similar Questions

  • Can not disable the video clip above buttons...

    Hello

    I have a few buttons, and above them a movie clip with a 20% transparency that I use for some graphic effects in my page. But the buttons are not accessible (they do not work) because the layer covers.

    I used the following code to turn off the graphics layer:

    overlay_mc.buttonMode = false;
    overlay_mc. Enabled = false;
    overlay_mc.mouseEnabled = false;

    but none of them solved the problem. The buttons are always covered and idle.

    Could someone help me?

    Thank you

    Add the rolling code to overlay_mc where you trigger a loop to search a hittestobject with your buttons.  disable the loop in slowing.

  • How can I disable the next/previous button at the bottom left of the Windows Picture and Fax

    I am a beginner of the windows developer, please help me.

    1. How can I disable the next/previous button at the bottom left of the Windows Picture and Fax Viewer? E.g. change Registory or others...
    2. when I click the print on the Windows Picture and Fax Viewer, the image of the current directory

    will appear in print wizard, how can I show only the currently shoing image?

    Note: windows XP SP3

    Hi NewsAru,

    Unfortunately, there is no way to disable the next\previous buttons in Windows Picture and Fax Viewer.

    When you try to print an image by using Windows Picture and Fax Viewer it would display all available photos in the folder that contains the image you have chosen to print.

    Overview of Windows Picture and Fax Viewer

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/image_toolbar.mspx?mfr=true

  • Can we disable flashing logo popup in the Dell Display Manager Application?

    He is very bored. Can we disable Dell flashes popup Manager Application Display Dell logo?

    While holding the SHIFT key, right-click on the MDD system tray icon and uncheck the box "Notifications on the screen" menu drop-down...

  • OATS load tests - how can I disable mentions legal browser banner laid

    When I run a test in the Load Test, the browser that is generated displays our banner Disclaimer, which requires a click ok to go beyond and is not captured in openscript. How can I disable this banner or automate the click ok?

    I guess it is a new connection session and so this legal opinion is not captured when openscript recording.

    OAT 12.5.0.2

    Windows 2008R2

    As a side note.

    The agent has never generates a new window browser for the following tests, after the first run, without a reboot.

    Tried only stopping and restarting the OATS 3 services (ATS, ATS server, Agent ATS officer), but no luck.

    Seemed that I read that there was a problem and just restart these services.

    Anything else I should do?

    Thank you

    Devon Irwin

    In fact, I just removed from here, but GPO will probably put it back

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

  • How can I insert a flash button in DW CC?

    How can I insert a flash button in DW CC

    You do not have.

    Flash buttons have been removed from Dreamweaver CS4. They are very obsolete.

  • My menu bar disappears when I move the cursor to the top of the document.  F9 it back, but I have to hit it twice everytime I go up to the menu bar.  How can I disable this feature?

    My menu bar disappears when I move the cursor to the top of the document.  F9 it back, but I have to hit it twice everytime I go up to the menu bar.  How can I disable this feature?

    Read this:

    Bug: KIS version 15.0.0.463 patch B Acrobat Reader XI - Kaspersky Lab Forum

  • How can I change the function of a flash button?

    Hello

    You are not sure if this should go in the Flash forum or Captivate forum, but nobody knows how, where to find ActionScript 3 orders for Captivate?

    I downloaded a pre-made button Flash (source file) for Adobe Captivate, which was originally made to make a video go to the next slide when you press. He does it very well, but I wanted to know how use the ActionScript in Flash Professional CS5 to have the button JUMP to a specific slide in Captivate, rather than just go to the NEXT slide. I know that usually how the code works, but have never really used and do not know the specific command to get there. Currently, the relevant part of the code of the 'Flash' button reads:

    function clicked(e:MouseEvent):void {}

    var myRoot:MovieClip = MovieClip (root);

    var mainmov:MovieClip = MovieClip (myRoot.parent.root);

    mainmov.rdcmndNextSlide = 1;

    I think I should just change the last line to something else and it should work, but I need the command. Can someone tell me what needs to be changed in the code above to get there?

    The full code is below. Thank you.

    code.JPG

    Here is an answer for everyone out there trying to do the same thing.

    To change the function, simply change "rdcmndNextSlide = 1" to another command with its variable. Commands and variables can be found here:

    http://www.cpguru.com/2010/07/20/Adobe-Captivate-5-system-variables/

  • How can I disable a sharing button

    We want to disable the new Firefox share button and the cat 'Hello '.

    about sharing feature, you could lock social.share.activationPanelEnabled and social.remote - install.enabled to false and social.activeProviders to an empty string.

    http://KB.mozillazine.org/Locking_preferences

  • By pressing the control button automatically zooms; How can I disable zoom?

    I can copy more text using Ctrl + C, is because as soon as I press the control key, FireFox is used in zoom mode [No, my touch more isn't stuck!] and increases the page at the maximum size. Since I have no use for the zoom feature, how can I disable it?

    This could also be a problem with the mouse, because now the CTRL key and turn the mouse wheel scrolls also.

    Try to set the pref mousewheel.withcontrol.action to 1 on the topic: page config to avoid zoom if the Ctrl key is pressed.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • How can I disable auto push to test servers in 2015 of Dreamweaver?

    This isn't a great idea... Never ever ever, I don't want to make a change to the presentation of my test environment.  Please tell me how to stop this option.  I know I can turn off my test server in the list, but that's all just stupid to have to do.  I do not use press on save, but I like to push to the server, I'm working on.

    I see. Your test environment is not your production environment. I checked the documentation for this function, and indeed, there is no option to turn it off.

    I would say that this deserves to be reported as a bug/feature request.

  • How can I disable the newtab most used feature display sites. I want the new tab to open the page displayed in the newtab:url in the topic: function config

    How can I disable the newtab most used feature display sites. I want the new tab to open the page displayed in the newtab:url in the topic: function config

    41 of Firefox is no longer uses the browser.newtab.url setting in about: config because he was constantly attacked by malware. From 41 of Firefox, you need an add-on to change the new tab page.

    Here are a few options (I'm learning more all the time):

    • If you are already using the extension classic restaurateur theme: There is an option somewhere (!) in his dialogues of the parameters to select another page in the new tab.

    Setting up substitute again tab

    After installing this extension, you must use the Options page to set the new desired tab page (instead of use subject: config).

    Open the page modules using either:

    • CTRL + SHIFT + a (Mac: Cmd + shift + a)
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then on the side right, find the new tab override and click the Options button. (See first screenshot attached).

    Depending on the size of your screen, you may need to scroll down to enter the address in the form. (See second screenshot attached). For example:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Then tab or click this form field and you can test using Ctrl + t.

    Success?

    Once you have set it as you wish, you can close the Add-ons page (or use the back button to return to the list of Extensions of this Options page).

  • can I disable shortcut keys? __

    I would rather not activated, shortcut keys because I never use them, and it seems I'm always hit things by mistake.  Can I disable them?

    Here's how to disable some but not all of them: http://www.howtogeek.com/howto/windows-vista/disable-winx-shortcut-keys-on-windows-vista/.

    The rest (basic ones) cannot be removed or disabled.  There is no control for this.

    Sorry, but deleting some of them is the best we can do.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I disable the Windows 7 Magnifier?

    How can I disable Windows 7 Magnifier all together? He have the box unchecked to launch at startup, but it always starts my mouse button. I use the button for something else and Windows do not map to the other application.

    Any help would be appreciated.

    Hi wil2liv,

    Please use the forum for answers,

    This gives a test:

    Click the Start button
    All programs
    Accessories
    Ease of access Center

    Then click on "Make the computer easier to use" downwards.

    Then unchecked "turn on Magnifier." Press OK and you're done.

    Let us know if this helps, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I disable default ContextMenu?

    Hello

    I learned development BlackBerry and am in the middle of writing my first important application. On the main menu of my application (or any extended screen screen, actually) when I click on a part of the screen that does not contain a control, a menu appears with the options Application Switch, keyboard Show, closed and full Menu.

    I don't want to remove these in the regular menu that appears when you press the BB button, I just want to stop that contextmenu of popping up when you click on the screen. I tried to set NO_SYSTEM_MENU_ITEMS in the constructor of the screen, but who does two things, I don't want: default menu items are removed from the BBKey menu, and context menu always opens with only the item of Menu "complete."

    Is there a way I can just disable the contextmenu to appear? I tried to replace makeContextMenu but this does not seem to have any effect.

    Thank you

    Oh just to clarify a few things, because I fear that we are not understand your problem correctly.

    When we say contextmenu, I usually do this to mean the menu that is associated with the context, i.e. the thing in short.  Thus, for example, when a field Edit is to the point, a contextmenu will include "clear field".

    However in this case, it is not what you seem to mean.  The context menu that you speak here looks the the menu that is called when you press the trackball.  This isn't a specific context of the field menu.

    I think you can remove this menu in two ways:

    (1) override navigationClick, but I don't really know where you want to do.

    (2) ask your makeMenu check the instance (the second parameter).  The invocation of lick trackball has a different value, sorry don't remember what it is.  But the invocation of menu keys has a 0.  If instance properties not 0, calling super.makeMenu and this will remove the default menu items.

    I suspect you want to use navigationClick, but I don't really know how to implement this and do not have time to test.  But stick one of these on your screen and see when it is called and what is removed if you return the value true (which means that you have used the click).

    Hope this helps, or clarifies a bit.

Maybe you are looking for