Transform double click on Z to double click on mouse

When I click 2 times on the touch "z" (keycode 90) on my keyboard, my item is removed.
I'd like to change it and when we click 2 times with the mouse the item is removed but I can't figure out how to do it... if mouseDown = true ? it does'nt seem to work...
timer=new Timer(500, 1);
stageRef.addEventListener(KeyboardEvent.KEY_UP, removeDraggedItem); 
private function removeDraggedItem(e:KeyboardEvent)
{ if(timer.running==true)
{ if(e.keyCode==90)
{ stageRef.removeEventListener(MouseEvent.MOUSE_MOVE, dragItem);
stageRef.removeEventListener(Event.ENTER_FRAME, itemHitTest);
draggedItem.removeEventListener(MouseEvent.MOUSE_DOWN, itemClick); 
stageRef.removeChild(draggedItem); toolbar.useText.text = ""; 
if (stageRef.contains(this)) stageRef.removeChild(this); 
Mouse.show();
Engine.playerControl = true; }
}  else if(e.keyCode==90) { timer.start(); }
I've tried to change (e.keyCode==90) by (e.buttonDown). No errors but nothings is happening when I double click...any idea why ?

import flash.utils.Timer;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.KeyboardEvent;
var timer:Timer = new Timer(500,1);
stage.addEventListener(KeyboardEvent.KEY_UP, removeDraggedItem);
stage.addEventListener(MouseEvent.CLICK, removeDraggedItem);
function removeDraggedItem(e:Event)
    if (timer.running == true)
        if (e.type == "keyUp")
            if (KeyboardEvent(e).keyCode == 90)
                  trace("Z was doubleclicked");
        else if (e.type == "click")
            trace("Mouse was doubleclicked");
    else
        if (e.type == KeyboardEvent.KEY_UP)
            if (KeyboardEvent(e).keyCode == 90)
                timer.start();
        else if (e.type == "click")
            timer.start();

Similar Messages

  • My Left-click on mouse is not working on mac os 10.8.2 mac mini. Please help ?

    Thank you for reading and helping out !
    All of a sudden, my left click on microsoft optical mouse stopped working. Then it worked for sometime then permanently stopped working after an hour. (its been 24 hours now). It was working fine before.
    Here is what I have tried so far.
    Tried Replacement optical mouse, which was not detected.  so can't even use a replacement mouse.. it only seems to recognize original mouse and respond to it only.
    I have turned Bluetooth off so that shouldn't be a cause.
    unplugged keyboard  and still left click on mouse not working.
    unplugged computer and all cables for more than 6 hours.. still not working...
    couldn't zap pram (for some reason being a microsoft keyboard ?? would you have proper instructions on how to to do this in windows keyboard??? )
    My Specs: mac mini 10.8.2 with microsoft ergnomic keyboard and basic microsoft optical mouse.
    i appreciate any help you would provide to get this solved!
    Thank you.

    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality

  • I updated my operating system to Maverick. How can I get the ability to double tap my mouse to enlarge the page back?

    I updated my operating system to Maverick 10.9.4. How do I get the ability to double tap my mouse so the page will enlarge back?

    Thank you so very much! I have got 1 Masters online and am working on #2. Yet I am so very computer illiterate. I was able to fix it in less than a minute. Again, thank you.

  • Can no longer send links online by right clicking my mouse or by selecting

    Everyday I share with others images from Facebook (or elsewhere), by right clicking my mouse on the image and being given the option to "E-mail link." For webpages (from my Taskbar) I click on "File" and then "E-mail link." Trying either of these functions now produces nothing - absolutely nothing happens. Also, I just now clicked on "File" to "Print" a copy of this question, and nothing happens when I click on File - no options appear.

    Hello,
    Maybe the problem is a corrupted file in your profile, try create a new profile:
    *[https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Create a new profile]
    Or try go to your profile and delete the localstore.rdf:
    *[https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data Profiles]
    Also:
    *[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
    *[https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox]

  • Now that I've upgraded to Lion, about 50% of the time when I click the mouse it acts as if I've right clicked.  How do I get back to the way it was?!

    I am working on two macbooks and an imac.  I upgraded all the software last weekend and am now running all three computers on Lion.  Over the last week, about 50% of the time when I click the mouse (whether it be the "pad" mouse on the macbooks or the standard mouse on my imac) it acts as thought I've right-clicked.  How do I stop this insanity?!  I want my old no-right-click mouses back!
    Thank you for any guidance!
    Jennifer

    Try this,
         Go to to the Trackpad System Preference and look at the Point and Click tab.  
         Uncheck the box that says "Tap to Click"
    I found my track pad to be way too sensitive and I was finding myself in web pages I did not choose to go to.  Unchecking that box will make it so you have to press the track pad to make it click something as opposed to just tapping it.  It is more effort but also less sensitive to random taps.
    Jay

  • When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    Thx for that im gonna try it....but is there a way to do it without using toolbar or cmd-c...? i mean using only the mouse?why does it have to highlight the file even though i click a bit next to it....?using icon view i can right click next to the folder and i wont have a problem but with list view that i prefer using it will highlight the whole row.....and i dont find free space to right click cause i got many files

  • My imac G5 is having mouse trouble. Whenever I click the mouse, it shows a menu, so I can't do anything in mail or safari. It won't let me type or select anything.

    Whenever I click my mouse, I get a drop-down menu. I can't click on anything. Can't type anything. Can't open or search. It started with my Mac Mail, but is also doing this on Safari. Tried shutting everything down. Tried checking preferences and mouse settings. I am using a different computer to send this because I can't do anything on mine with the mouse acting that way. Does anyone have any ideas?

    It sounds as if your mouse is stuck on right-click.  Try cleaning the mouse or giving it a good rap on the desk to get it working properly again.

  • Clicking Causes mouse to be held down

    I've been having an odd glitch, sometimes when I click my mouse (I've tried with different mice) the mouse gets held down, and the only way to release it is to right click. This is especially bad trying to move files in Finder, as it means I can't let go of the file. Any resolutions?

    I'm assuming by the fact that you say you have tried different mice that the actual mouse is fine, it's just holding the click on the screen.
    First thing would be to check the Mouse settings under the System Preferences.
    JD

  • Help!! In preview, wherever I click the mouse it shows my other sheets??

    I'm new here and I'm trying to figure out how I can resolve this problem. Im making a website, as a starter i made a couple of sheets where I assigned events like when the mouse click "home" it should go to home page.. when the mouse go over "Topic"(for example) there should be a drop down list of sub-topic. but the trouble is, when I tried to preview it, even I click the mouse wherever I want in the page, it goes cycle.. like it will go to home-topic-drop down list-home---again and again in each click.. Please somebody help me!!  I'm not a programmer... so I don't know how what's going on?

    Actually I just figured it out why.. hehe.. coz my set up was in presentation.. But I still have a problem. When I preview my project and try to click "Product" button, it doesnt go to product section even though I already set the event to go to sheet "product" from home page.

  • HT1338 My MacBook Air is very slow. Every time I click the mouse, the spinning wheel appears and remains for up to 30 seconds. Can you help me?

    My MacBook Air is very slow. Every time I click the mouse, the spinning wheel appears and remains for up to 30 seconds before the screen changes. This has been happening the past 24 hours. Any ideas?

    First, back up all data immediately, as your boot drive may be failing.
    If you have more than ten or so files or folders on your Desktop, move them, temporarily at least, somewhere else in your home folder.
    If iCloud is enabled, disable it.
    Disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • I got Mavericks and now clicking my mouse doesn't work in many apple programs, is there anything I can do to fix this, and is Apple working on a fix for it?

    Clicking buttons doesn't work in calendar, preview, or updates, and it also doesn't work in fullscreen videos viewed on youtube.  Right click seems to work like a left click, but not for everything.  Clicking the mouse works in other programs.

    1. Reset PRAM.  http://support.apple.com/kb/PH4405
    2. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".

  • How do I get my right click on mouse to copy and paste?

    How do I get my right click on mouse to copy and paste?

    As long as the right-click displays the dropdown menu, then it is enabled and you just have to select "copy" or "paste".
    I find the quickest way to copy/paste is to use the keyboard shut-cut of, command C and command V. Quick and easy and less moving of the mouse.
    Good luck.
    Adam

  • Hi double tapping the mouse causes it to zoom in

    Hi so double tapping the mouse causes it to zoom in!!!!
    How do I stop this happening   (apart from not double tapping the mouse)
    Many thanks to whosoever it was who answered my first call to tell me this
    Dragon388

    Go to System Preferences>Trackpad>Scroll & Zoom:
    Is Smart Zoom enabled? If so, disable it.
    Clinton

  • Delayed response on right click of mouse in windows 8.1 updated from win 8

    dear all,
    i am facing issue with the right click of mouse in windows 8.1 which i have recently updated from my preloaded windows  8 
    which came with the pavilion g6-2231tx model of hp. 
    on right clicking the mouse i am getting delayed response and sometimes no response at all ,system hangs and freezes..
    please do help asap...
    Regards,
    SMARTSKY

    Hi SMARTSKY,
    Thank you for your inquiry, I will do my best to assist you!
    I understand that after updating to Windows 8.1, you are experiencing a difficulty with the right click on your mouse.
    Have you done all your Windows updates?
    Here is a link to a document to assist with Troubleshooting Mouse Problems (Windows 8).
    Windows 8 also has a built in troubleshooter you can utilize.
    Press the Windows key +C to open charms.
    Type troubleshoot mouse in the search bar and press enter
    Follow the on screen prompts.
    You can run The HP Support Assistant to help with HP updates and resolving issues.
    If you would like further assistance, do not hesitate to repost.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Dashboard shows up whenever I click the mouse

    I am using Lion on my MAC desktop.  I hit F4 to use the calculator and used my mouse to make it go away.  However, now whenever I click the mouse, the Dashboard shows up.  I have tried unplugging the keyboard/mouse for a few minutes, still happens.  Unplugged MAC for a few minutes, still happens.  I can't use the MAC without the mouse.  The mouse seems to be stuck on the Dashboard keystroke. 
    Please help

    I've been having this problem too, but how does one open system preferences if every mouse click opens the dashboard and the next mouse click closes the dashboard? Is there another way to open the mouse folder? Thanks.

Maybe you are looking for

  • Hi how to put check box in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    hi i have a header table ITAB_HEADER : LFSNR FIELD2 FIELD3 FIELD4 i need to put a checkbox on the header record please advise what step to do and where to put that checkbox i read some example but i don't understand how it is done please urgent help

  • Open a MS Word document in portal application

    In portal content area we can add a MS Word document as an item. When you click the link, portal will launch MS Word and open the file. Can we do the same thing in portal application?

  • The bottom part of my Macbook is melting.

    I know Apple has a Macbook Bottom Case Replacement Program, But I live in the Philippines and I saw they only ship the case to a few countries... Can sombody help me??? And one more thing. My macbook is on ver. 10.6.8, It won't update properly. 1st y

  • How do I change the mobile number re messages on iPad air

    How do I chane the mobile number re messages on my new ipad air.  It seems to be coming up with my husbands number ...

  • LR 5.4 & LR Mobile - Saying "Syncing is currently off"

    Hi all, I'm setting up LR Mobile for the first time but LR 5.4 on my notebook is saying the following when I set a collection to enable sync: "Syncing is currently off" I can't find where to turn on syncing.  Searching in the menus shows a few option