Double-click on the graph in the map does not work

Hello
I had created an application where the user can click on the map and a marker will be created and it stores values x y and stored in the database and the user can also drag the marker and place it in the appropriate position and after the user drag and drop the marker we have a "confirm" to send the values of y from x to the database. I need to remove that confirm the button and replace only with double click where user double clicks on the marker settings must pass.

To drag the marker, I use the mousedown event, but when I add the doubleclick event his does not work

gr.doubleClickEnabled = true;
gr.addEventListener (MouseEvent.DOUBLE_CLICK, registerComplaint);
gr.addEventListener (MouseEvent.MOUSE_DOWN, mousedownGraphic);

even when I comment on the mouse to the bottom of the double click event on the graphic marker does not work.

Help me in this task I need to do urgently.

Concerning
Arun Mohan

While I can't possibly guess the cause of your problem, there is an easy solution for this.

...
// record the time for the last mouse down
private var _lastMouseDownTime:uint = new Date().time;
// how fast the second mouse down needs to be to qualify for double click
private var _doubleClickThreshold:uint = 500;
...
// traces mouse down and double click
private function mouseDown(e:MouseEvent):void {
            trace("mousedown");
            var mouseDownTime:uint = new Date().time;
            if(mouseDownTime - _lastMouseDownTime <= _doubleClickThreshold){
                trace("doubleclick");
            }
            _lastMouseDownTime = mouseDownTime;
}

Tags: Adobe Animate

Similar Questions

  • Satellite C660 - click of the mouse does not work

    Hello

    I bought this laptop 5 weeks ago and now have problems with the right, click on the mouse does not work. Left click sometimes opens to the left, click on functions and leaves me is impossible to close programs or closed, double clicking in the pavement or enter does not work also.

    I tried to do a system restore to the factory, but I can not click on the next to take me through the restoration and end up having to close it via the main power switch.

    Any ideas please?

    Hello

    You have the same problems with a mouse external or just the touchpad?

    If an external mouse works correctly, you can use it to do a recovery install. This can help you to solve the problem, if this just s software.

    Not least have last but you tried to update the driver for the touchpad? You can find it on the official website of Toshiba:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    Check this box!

  • Shortcuts mouse to "Open the link in a new tab" help "Middle-click on the link" does not work on 10.0.1

    Shortcut of mouse to "Open the link in a new tab" help "Middle-click on the link" does not work on 10.0.1, it worked on version 9.0.1.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • Right click on the button does not work

    I tried to use the right click button to copy and paste and delete things or get this bar you usually get when you right click, but it does not work. It works as a second main button. How should I do?

    How good are you click?
    How is it implemented  - system - Trackpad preferences?

  • How to remove the drop-down list of previous searches in sites such as wikipedia? Do a right click in the box does not work.

    I can't remove the combo last searches sites such as wikipedia. Right click on the box does nothing.

    This has happened

    A few times a week

    Is always

    See also:
    Check if Firefox automatically fills in forms
    http://KB.mozillazine.org/Deleting_autocomplete_entries

  • Click on the mouse does not work

    I'm on an iMac ca 2008 and the mouse cursor moves on the screen, but clicking on does not work. No action in any application. Will not open files, no command is executed. Initially, it was casual, but happened to be the worst, now it is complete, start at the stop. At the start (in El Capitan), the mouse moves the cursor, but there is no answer to the click. I went through the first aid standard attempts-trash finder prefs, reset the NVRAM, reset the SMC - no change.  Elsewhere in the forums, the problem is attributed to the El Capitan, or if no GPU. BIOS problem? It seems to be a hardware problem, but I'm no judge of that. Any suggestions?

    You probably need a new mouse.

  • Lenovo U31-70 double tap on the touchpad does not work

    Hello

    I just bought a new Lenovo U31-70 with Windows 10 already installed on it. There is a problem with the double tap feature, it does not work. The feature is enabled in the option.

    This model of Lenovo has Alps touchpad driver and I am not able to find the place where activate the double tap on regedit, of workaround works instead if you have Synaptics drivers.

    Who can help me?

    Sorry... I found a solution in a similar topic, admin can close it.

  • New Notebook Laser Mouse 7000 - click on the button does not work so it is unusable

    If this is the wrong forum, please let me know. I couldn't find an obvious forum for mice. My old wireless mouse does so after much research, I chose a Laser Mouse 7000 and ordered online. I have download the drivers, follow the instructions for setting up and pressing the buttons, the installer with ALL THE BUTTONS by DEFAULT, reset and CLICK does not work. It acts like I am struck by right click. I tried moving, rearranging button settings, nothing works. When I go into control panel it says it is not working properly, but this certainly isn't. I also restarted x 2 to try to make the problem go away.

    It is a defective material, so should I just sent to the seller? That I've already lost too much time on this stupid thing. If I didn't always have a wireless mouse, I would not be able to use my PC

    Windows vista 64-bit standard

    Oh, I try the product. I have to enter the product number. It is very very small and very difficult to read, but I can enter the product correctly, I think. But here is the message that I will be back:

    "The product ID does not match the selected product.
    The product ID you entered is for Microsoft Wireless Notebook Laser Mouse 7000 (all languages), which is different from Microsoft Wireless Laser Mouse 7000 (all languages) you selected for support. Please enter the ID number of the product for Microsoft Wireless Laser Mouse 7000 (all languages) or click Select the product to select the right product. »

    WTF?

    Hello

    Microsoft Hardware Support access in the United States is 1-800-936-5700

    Dial the number and when he asks PID just say you don't know. You will need to give to the
    Tech answers so have a magnifying glass very convenient. There could be a more easy to read number on
    the receiver.

    Believe it or not, I had exactly the same experience with my entire keyboard and mouse, and I am
    in the meantime the new series arrived. Rob - bicycle - Mark Twain said it is good.

  • By clicking on the icon does not work

    4135 printer with XP.  Worked fine for about 1 year. Now by clicking on the icon to open does not work. Reinstalled 3 times. The printer is recognized, but the problem persists. No error message not developed.

    Jack,

    Rats...  Ok.

    I come to check on the forum and found an interesting Solution posted a few years back.

    It seems that the Solution Center requires that Adobe Flash installed / reinstalled.

    Adobe Flash Player

    Knowing that Adobe Flash is one of those providers of free software that make money by offering other free software for downloads and / or facilities - don't forget to READ the tiny text boxes and UNCHECK everything you don't want to be installed with the program.

    Internet Explorer can work better to download programs of this type.

    Click on the Thumbs - Up Kudos to show that you appreciate the help and time of our Experts.

    Although I strive to reflect best practices of HP, I do not work for HP.

    Click on accept as Solution when the answer is a good solution or workaround!

  • Update the maps does not work after 10.3.2.440 blackBerry 10

    My Z10 has recently been updated with ATT 10.3.2.440.  Since the update, "Maps" do not work properly.  The opening, I see the map, with my current position, but I'm unable to find anything or to plan directions.  The application displays "content is not available.  The content of my site is currently unavailable. »

    I tried to reset the device using the volume keys, but no improvement with this problem.

    Thanks for any help / advice.

    Well D

    Hello

    BB today released a new version of MAPS... I suggest get via BBWorld and then try again.

    Good luck and let us know!

  • Left click of the mouse does not work

    I recently got a "microsoft wireless mobile mouse 3500. For some reason any the left click will not work and won't be the Center wheel. The right click works perfectly well. I havnt done anything to harm the device. I checked the manual to see if something could help me here. I also looked on the websites and checked if others had the same problems. I couldn't find anything that could fix. Could someone help me please?

    You have installed the latest Web site driver below:

    http://www.Microsoft.com/hardware/en-AU/p/wireless-mobile-mouse-3500#support

    If SO and it still does not work, as it is again return to place of purchase and replace.

  • In google maps, after seeing satellite or view, links on the map does not work, I have to charge google maps and start all over again

    When I open google maps, the links displayed on the maps can be used. However, if I change to a view street or satellite view and then return to the display of the base map, links displayed on the map is no longer working. I have to leave google maps and reload to get the links to work again.

    Hello peterronald, many site problems can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

    Thank you.

  • Firefox 8.0.1 - right click of the mouse does not work and the menus at the top are not working. They sparkle and sometimes remain visible, but most of the time they cannot be seen.

    When I right click of the mouse on a link of the menu sparkles and especially is not visible. When I select the top menu bar, the menu selections twinkle and especially are not visible. It makes the browser unusable. This is a serious bug.

    Bookmark and menus flicker- https://support.mozilla.com/questions/850203

  • The mapping does not work

    Hello

    I try to make a simple mapping

    Source: JMT_PWD (login, pwd)
    destination: JMT_PWD (login, pwd, test) with test = pwd

    When I start replicat I got the below error
    2011-10-09 14:39:15  ERROR   OGG-00918  Oracle GoldenGate Delivery for Oracle, rep9.prm:  Key column TEST is missing from map.
    2011-10-09 14:39:15  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, rep9.prm:  PROCESS ABENDING.
    What's wrong?

    Thanks for your help

    below my params for replicat
    replicat rep9
    setenv (oracle_sid=T4F)
    userid ogg,password ogg_pwd
    handlecollisions
    assumetargetdefs
    discardfile /tst/data/ogg/discards/resp.dsc,purge
    reperror default discard
    map SIEBEL.*, target SIEBEL.*;
    sourcedefs ./dirdef/ext9.def
    dboptions deferrefconst
    MAP "SIEBEL.JMT_PWD", TARGET "SIEBEL.JMT_PWD", COLMAP (TEST=PWD);

    You saying that you map the tables more than 5000, as in, you modify the column names or adding adding columns? It is not really clear.

    Let's say you have two types of source tables: those which maps directly through and those who will have a few changes (not to use a column, add a column, use a different name, etc.). The straight line through tables can use assumetargetdefs and passthru, right? Why waste time with GoldenGate looks up a definition just to know a table is the same? The other tables can be in a group where you (have to) use sourcedefs because there are differences; the tables do not meet the rules to be the same.

  • createToolTip and MouseEvent.CLICK on the ToolTip does not work

    Hello

    I didn't have success for a MouseEvent.CLICK working on a ToolTip created with ToolTipManager.createToolTip.

    Here is the code, no alert is displayed when I click on the ToolTip:

    private var tt:ToolTip;
    
    private function showToolTip( event:Event ):void
    {     
         tt = ToolTipManager.createToolTip( toolTipHelpText, 0 , 0 ) as ToolTip;
         tt.addEventListener( MouseEvent.CLICK, test )
    }
    
    private function test( event:MouseEvent ):void
    {
         Alert.show( 'test' );
    }
    

    Can I do something wrong?

    Thank you

    Set mouseEnabled = true on the ToolTip.  You may experience other side effects.  ToolTips are not necessarily designed for the mouse interaction

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for