Double Click on Graphic in Map is not Working

Hi,
I had created an application where the user can click on map and a marker will be created and it stores x y values and stored in database and user can also drag the marker and place it to appropriate position and after the user drag and drop the marker we have a confirm button to send the x y values to database. I need to remove that confirm button and replace that with the double click where user double clicks the marker parameters should pass.
For dragging marker i use mousedown event, but when i add doubleclick event its not working
gr.doubleClickEnabled = true;
gr.addEventListener(MouseEvent.DOUBLE_CLICK,registerComplaint);
gr.addEventListener(MouseEvent.MOUSE_DOWN,mousedownGraphic);
even when i comment the mouse down event double click on graphic marker is not working.
Help me out in this task as i need to do urgently.
Regards
Arun Mohan

While I can't possibly guess the cause your problem, there is an easy workaround 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;

Similar Messages

  • HT201406 i'm having to double click everything & the slide feature is not working.  What's the problem?

    i'm having to double click everything & the slide feature is not working.  What's the problem?  Resetting fixes it for a couple seconds then it goes right back. 
    i.e. If I go to open my mailbox, i have to 1st select the icon. then double tap it to open.  same thing once I get to an email.

    At a guess, turn off VoiceOver:   Settings > General > Accessibility > VoiceOver.  Use three fingers to scroll.

  • Double-click in Excel XP Win XP not working

    I have installed the 6.5 Spreadsheet add-in on over 10 systems on my network. Typically the systems are Win98 running Office 2000. This last week we installed 5 WinXP systems running OfficeXP.I installed the Essbase Add-in on three of the XP systems and thought all was well. Last week one user complained that the double-click function was not working.I tested the other two installs and they work fine.I check the ESSBASE-Options tabs and the double-click option is checked.If I un-check this option, and double-click, the system 'edits' the cell, which is what we'd espect. When I check this option the system appears to do nothing. Right-click also appears to do nothing.I have uninstalled the ESSBASE add-in , and re-installed it, and found no difference. I have also 'repaired' my office installation.There only seems to be one instance of Excel running. Multiple instances seemed to be an issue in the discussion boards.This particular user 'customizes' the desktop, fonts, icons etc. all the time. I keep thinking there must be something in that area that is compromised.Any pointers? Any experience? Any help?Regards

    Maybe that user change something in the zoom in section of the essbase options... maybe set it to formulas...

  • Cannot open files with a double click !! Trackpad solution does not work, just makes my cursor move slowly. Have not found a solution in forums. Help needed please!!

    I cannot open files by double clicking ... have looked at forums and no solution yet !!! Control click is the only way i can open files
    "If you go to System Preferences > Accessibility > Mouse and Trackpad -  You can set the speed of the double click to be much slower.   Hope this helps someone else with a similar problem. "  this solution did not work it just made my cursor move at a snails pace.
    Thanks for any help forthcoming !!!

    found this on another websites forum .... it worked
    I figured it out. Thanks everyone!
    I had to turn on my wireless mouse... And even though I wasn't using my wireless mouse and just the trackpad...I had to turn on my wireless mouse then adjust those settings...Had to turn down the speed. Then Once I shut the mouse off and started to use the trackpad again it works perfectly.
    I'm not sure why the mouse settings would change the trackpad settings but it did.

  • Double clicking to open new tab does not work anymore

    Am I loosing my mind?
    I have been opening tabs like this for years, now it is not working.
    Any help would be appreciated.
    thanks
    Laura

    HI Laura,
    Check Safari Preferences then select Tabs. Make sure your preferences haven't changed for that then select the General tab. Check your tabs prefs there also.
    If nothing is amiss there, go to your Safari menu bar, click Safari / Empty Cache or Command + Option + E on your keyboard.
    If that doesn't help, from the Safari menu bar click, click Safari / Reset Safari. Select the top 7 buttons, click Reset.
    Also, if you have any Safari Extensions installed or Safari third party unsupported add-ons, that could be why you are having problems with your Tabs.
    For troubleshooting third party add-ons, follow the instructions here. http://support.apple.com/kb/TS3230?viewlocale=en_US
    You can access Safari Extensions in the Safari / Preferences pane.
    Carolyn

  • How do i get a fullstop when texting. I try to double click the space bar but its not working.

    The fullstop was working when i first got the phone but now its not. I am new to the i phone and not sure what i am doing. Its the i phone 4s.
    Also i dont know how to get the menu up while i am on the phone talking. For example if the company i am ringing requires me to press 1 for connection i cant get to the screen with the numbers. Hope this makes sense.
    Thanks for any help......

    Check Settings>General>Keyboard and make sure that "." Shortcut is set to On.
    When you are on a call, you should see a panel of six icons. The dial pad is the middle one on the top.

  • HT2500 How do I not display the preview pane in mail until I open it with a double click? Some mail I do not wish to open-just delete it.

    How do I not display the preview pane in mail until I open it with a double click? Some mail I do not wish to open-just delete it. New macbook pro with LION OS

    Just drag the divider line between the preview pane and the message list all the way to the edge so the preview is completely closed. Selected messages will open in a new window with a double-click or the return key.

  • 3.1.2 double clicking home button when music is not playing

    Is the bug that double clicking home button while music is not playing didn't bring up the iPod control fixed? I don't know it's a design change or a bug, but for me it seems definitely a bug since it doesn't give anything good. Clicking home button once already terminates the application, why would anyone use double clicking to exit the application too?
    This is why I'm still using 3.0. Is this fixed in 3.1.2?

    It's a design change, not a bug. Although I do have to agree with you on that I preferred what double-clicking the home button originally did. There is even settings (in general settings if I can remember right) on what double-clicking the home button performs, but that isn't even an option on it.
    And nope this is not fixed or redesigned in 3.1.2.
    Hope that answers your question,
    Enjoy!

  • Using office outlook under parallel desktop double click on an Excel attachement does not open the document in Excel

    using office outlook under parallel desktop double click on an Excel attachement does not open the document in Excel.
    double-click opens Excel Office 2011 for mac without the document.
    It should open the document in Excel 2010 for Windows.

    In Parralells, choose the file you want to open.
    Right Click on it and choose Properties.
    In the General Tab you will see "Opens with:"
    Click the "Change ... " button.
    Then choose Excel 2010. The checkbox below should be set to "Always use ... "

  • Double clicking a new e-mail does NOT show whole e-mail

    double clicking a new e-mail does NOT show whole e-mail unless I go to forward or reply. In other words, I may see a couple sentences, then it's just blank, no scroll bar either. This gets annoying. Anybody else get this or know how to overcome this?
    eMac 800mHz   Mac OS X (10.4.6)  

    Well, there is no such thing as an AOL type account in Mail. Such an account must be set up as either POP or IMAP. Nevertheless, knowing that the ISP for one of the accounts is AOL is useful because it seems that other people also have this problem with AOL -- see Chuck Coulson's and smackwell's posts in this thread.
    I don't think I'll be able to help you with the AOL account other than telling you to try rebuilding the mailbox -- select the mailbox and choose Rebuild from the Mailbox menu. Have you tried that?
    The problem shouldn't happen with the POP account, however. Do you experience the same problem with it as well?

  • 3.1.3 double clicking home button when music is not playing

    Is the bug that double clicking home button while music is not playing didn't bring up the iPod control fixed? For me, it seems definitely a bug since it doesn't give anything good. Clicking home button once already terminates the application, why would anyone use double clicking to exit the application too?
    This is why I'm still using 3.0. Is this fixed in 3.1.3?

    Jeong-hun Sin, 3.1.3 has the same issue, and I do not think Apple is ever going to fix this issue. They still haven't even fixed the live updating playlist sort order issue...
    roaminggnome he's referring to a pop-up controls issue that has been talked about on this forum ever since the release of the 3.1 firmware.
    http://discussions.apple.com/thread.jspa?threadID=2151438
    In 3.0 and older versions, if you're in an app/game you can double-click the home-button to access the iPod pop-up controls to resume the playback of a song/podcast that had been previously paused/stopped.
    In 3.1, if a song had been previously paused you cannot launch the pop-up conrols to resume the playback of the song. You're forced to exit the app that you might be in (lets say safari, or a game), and then resume playback using the music app.
    Jeong-hun Sin, I upgraded to 3.1.3 a few days ago, and have found a few improvements:
    - Many 3D games are MUCH smoother/faster under 3.1.3, than 3.0. I downgraded back to 3.0 just to see if I was just imagining things, but games like Coconut-racer, and Asphalt 5 were not as smooth as they were under 3.1.3.
    - If you happen run apps that have live video streaming where the video playback controls do not appear (e.g the BBC world, Al Jazeera news, sure there's more), the iPod Touch no longer randomly reboots when using those apps.

  • In my MacBook Pro Maps app not working properly?.. any solution

    Maps app not working properly?.. any solution

    If i search any routes by clicking directions tab,the message shows like this " DIRECTIONS ARE NOT AVAILABLE A ROUTE TO THE DESTINATION FROM ITS NEAREST ROAD CANNOT BE DETERMINED"

  • My photoshop crashes when i double click, it says that it has stopped working and that i should check online for a resolution, anyone got anything to help me

    my photoshop crashes when i double click, it says that it has stopped working and that i should check online for a resolution, anyone got anything to help me

    i found out my prob!
    here is what you do.
    go to the "system preferences" on your dock.
    click "software updates".
    click "installed software"
    if it shows something about a recent update about "EFI UPDATE, FIRMWARE, THUNDERBOLT" or anything like that, exit out of it.
    go to mail.
    click "mail" at the top.
    click "preferences...".
    find the account you are having trouble with, once you do, make sure its highlighted, then click the "-" at the bottom of the window (this will only effect that mail account, it will not effect your ical weather or not its synced thought that email account)
    hit the "+" (right next to the "-") and add your accout back!
    its something with that update that effected mail, i hope this works out for you, if not reply back

  • Is it possible to  downgrade ios 6 to 5.1.1(i upgrade my iphone 4s from 5.1.1 to 6 but map is not working )

    is it possible to  downgrade ios 6 to 5.1.1(i upgrade my iphone 4s from 5.1.1 to 6 but map is not working )

    best answer to your question I've ever seen is;
    Kappy Tampa, FL and Vancouver, BC
    Re: Downgrading     Oct 16, 2012 2:57 PM    (in response to nbabbit2013) 
    I'm sorry, but Apple does not provide a downgrade path for iOS. Because downgrading is unsupported by Apple we cannot discuss it on these forums, but you can use Google to find information on how to install an older version of iOS on any iDevice.

  • The application maps is not working. When I try to run it opens for a few seconds with a blank screen and then closes

    The application maps is not working. When I try to run it opens for a few seconds with a blank screen and then closes.

    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

Maybe you are looking for

  • My Ipod Nano no longer goes to full volume.  Can this be fixed?

    Recently, I have found that my Ipod Nano (2nd generation) no longer plays music at full volume.  While it is generally sufficiently loud, at the gym, with all the external noise, I have trouble hearing some of my music.  Is there a fix for this probl

  • New Mac mini died

    My brand new Mac mini arrived just a few days ago. Did the upgrade to 10.5.2 and everything was working fine. Tried to turn it on this morning and - nothing. The machine wont power up; it just sits there. I tried all of the obvious things like checki

  • Trim, bleed Display problem!

    PDF created from Indesign/Word is able to display trim, bleed details, but PDF created from Latex does not display bleed, trim box. How to fix this! Thanks in Advance for Help!

  • My fire fox disappeared after downloading a music site for free.

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/913692]]</blockquote> how do I get the fire fox back after some how the user changed to yahoo/ask. do i have to delete it and start over? how do i do that.

  • ZPM License Expired?

    The school system I work for renews the license for all Novell Products each year around mid-May. This includes a few ZENworks products like ZPM. Each year I go through a small time frame where ZPM license is incorrect I spend time working with Novel