How to cause a menu to display when spacebar is held down?

Hi, is it possible to make a menu display when the spacebar is held down, then, disappear once a menu option is chosen and the spacebar is released? 
Thanks

Here's some code that will make a named object appear/disappear with the spacebar.  But it is not currently dependent on selecting something from the object, such as a menu option.
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
menu.visible = false;
function keyDownHandler(evt:KeyboardEvent):void {
if(evt.keyCode == 32 && evt.type == "keyDown"){
  trace("Space pressed down");
  stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
  stage.addEventListener(KeyboardEvent.KEY_UP, keyDownHandler);
  menu.visible = true;
} else if(evt.keyCode == 32 && evt.type == "keyUp"){
  trace("Space released");
  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
  stage.removeEventListener(KeyboardEvent.KEY_UP, keyDownHandler);
  menu.visible = false;

Similar Messages

  • HT2589 How do I change what is displayed when I rate an app?

    The name that shows up is not my Apple ID and I cannot find anywhere to edit this information but it shows up on all reviews that I write.

    Hello er-apple,
    Thank you for the details of the issue you are experiencing with the name displayed when writing reviews.  It sounds like you need to update your Nickname for your Apple ID. 
    You can update this by going to the Store menu in iTunes on your computer.  Select Store > View My Apple ID, and from there, you will see your account information.  Near the bottom, you will see a Settings section which will list your Nickname; click Edit to the right of Nickname and update it to the name you would like to use.
    iTunes 11 for Mac: Manage your iTunes Store account
    http://support.apple.com/kb/PH12299
    iTunes 11 for Windows: Manage your iTunes Store account
    http://support.apple.com/kb/PH12507
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to get Hongkong Map to display 繁體 when cellpho...

    How to set Hongkong Map to display 繁體 but keeping cellphone lanaguage in English?
    I want to keep all interfaces in English, only local maps of China, Taiwan, Hong Kong & Macau to have street names in Chinese language (either 繁體 or 简体). The PinYin is an alien language to me.

    Thanks farby. It is a pity there is no option to switch between the languages. Most locals here are bilingual and for some reason prefer to have the menus set in English but the maps. And those pin-yin names of places are not proper English names either.

  • How to make first page to display when running the project

    hi friends,
    as i am new this development in webdynpro, i am getting lot of support from the forum. i am thankfull them all.
    now i am having many views in my project and i am navigating from one another. if i want to make one particular view as first view to be displayed when i am runnning the project.

    hi,
    If u have more than one view.To define a view as a start view, you must create an outbound plug for this view.
    note:For Create Outbound Plug or Create Inbound Plug. In
    the work area of the Navigation Modeler, click once on the view for which you want to create the plug. It is irrelevant whether you start by defining an outbound plug for the start view or creating an inbound plug for the subsequent view.
    regards,
    Arun

  • How can I keep pages from scrolling when using keyboard page-down

    The bottom of the pages window has a gear. You can select "Page" in the drop down menu and click the arrow, to perform a page down. The new page is positioned exactly like the previous page. But when I type fn+down-arrow or cmd+down arrow the new page view is either higher or lower than the previous page. Resizing the window makes it almost possible to get a consistent page display but not quite. It's awkward trying to read a document when each new page jumps to a new position. The arrow next to the gear is the only solution I've found.
    Does anyone know a way to achieve this page down view using just the keyboard. I'm using the iMac wireless keyboard?
    Thanks,
    Mark

    It is an annoyance, due to the 2 meaning two different things.
    The page down key means the whole window view which is not the physical page that you see in Pages.
    Apple could have clarified it by labelling the key +window down/up.+
    Peter

  • Items number to display when combobox is dropped down

    Is it possible to set the items number to show when combobox is dropped down. I mean that the default number of items a combobox shows is 8, and i have 9 items at all. I do not want to scroll only for 1 item. Is it possible?

    Try using JComboBox.setMaximumRowCount - this should do what you want it to.
    Hope this helps.

  • Kill the MouseEven.CLICK event when mouse is held down?

    I have been studying games on Facebook and am trying to emulate mouse event handling. For example in ChefVille you can click on objects and drag them around. But if you hold the mouse down you pan the entire game environment and when you release the mouse button a click is NOT registered on the object below the mouse. In my tinkering the CLICK event is triggered on the release of the mouse button no matter how long I keep the button depressed. How do I keep the CLICK event from firing if the mouse is held down for some period of time?

    I don't know that you can cancel a CLICK event in the middle of it happening (CLICK = MOUSE_DOWN followed by MOUSE_UP), but you can trigger a Timer on the MOUSE_DOWN event and use its event handler to set a boolean variable that your CLICK event handler function can make use of to decide whether or not to process a CLICK event.

  • How do i change what is displayed when i open a new tab?

    When i open a new tab it automatically comes up with Yahoo search engine in the new tab. I want change this to a google search tab. How do i do that?

    Opening Yahoo in a new tab is caused by a Yahoo related extension, possibly net assistant. To stop it going to Yahoo you can uninstall that extension.
    For an option to open new tabs to a site of your choosing, you can use the NewTabURL extension - https://addons.mozilla.org/firefox/addon/newtaburl/

  • How do you switch iMac 27" display when in Boot Camp (Windows 7)?

    Hello,
    My 27" iMac works great as an external display as long as the iMac is booted into OS X and I hit command-F2. 
    When I boot my iMac into Boot Camp (Windows 7) however, hitting command-F2 doesn't work to use my iMac as an external display.
    Is there any way to get the 27" iMac to enter external display mode if you have booted it into Windows 7 rather than OS X?
    Thanks!

    I have the same problem, 64bit Win7 Home Ed. loaded with all the recent updates including a Bootcamp patch from last week.
    I posted on 9/2/10 and haven't gotten a reply. Did a lot of Google searching but only found it is a problem many have, but that no "real" solution is available.
    Since I have had issues in Win7 after it crashes this way and after on/off (unlike you), I'm not willing to mess with it anymore.
    I doubt Microsoft will commit to fixing this and it's not likely to be a top priority for Apple.

  • How can I change the number displayed when I make a call/send a sms? Despite transferring my old number across to my iphone messages.and Facetime are made from the original sim number and not mine. Any ideas?

    I've transferred my old number by PAT code to my new iphone and most of the time it works fine however there are problems when replying to tests and using Facetime when the original sim muber is displayed. My frined can text me on my correct number but if I reply she receives it from the different number. Also when using Facetime the number displayed is the one the came with the iphone. Anyone know what to do to get the number id correct?

    Tell her to contact her carrier and get a new phone number.

  • Adobe Reader XI - Force menu to display when viewing PDF

    Hello,
    We run adobe reader XI in a citrix xenapp deployment.  With older versions of adobe, users would open a PDF and the top menu bar would be displayed which would allow them to print fairly easily.
    With the newer XI version, that menu does not show up unless you press F8.  So users are forced to either press F8 to bring up the menu, or right click within the document and select print that way.
    Is there a preferences setting, or a registry key change that could be made to force this menu to come up every time?  I took a look around and didn't notice anything that stood out.
    Thanks for any assistance.

    We ended up finding a registry key which forces this menu to come up each time:
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\11.0\AVGeneral]
    “bBrowserDisplayInReadMode”=dword:00000000

  • How do you get toobar to display when composing an email?

    when composing an email I do not have a toolbar that give me options such as add attachment, save as draft etc.

    Are you attempting to use a web-based email client or Thunderbird?

  • Invalid singature was displayed when I tried to down load the newest software and the download was cancelled.

    I tried to update my software when asked to but the error message "invalid signature" displayed andf the download cancelled. I have been unable to find a solution,

    Hi there KrisonCastillo,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    -Griff W.

  • How do you turn on the laptop when it shuts itself down and the power button isn't working

    How to I turn the laptop on after it has shut itself off

    If you hold the power button down for 15 to 20 seconds and the machine still will not turn on, you should do one of three things:
    1.  Take it to an Apple Store for an assessment and estimate.
    2.  Take it to an Authorized Apple Service Center for an assessment and estimate.
    3.  Consider purchasing a replacement machine.

  • New SSD only boots when option key held down.

    I recently cloned the original HDD in my mid-2009 MBP [2,53] to a brand new SSD. I put the SSD in an external enclosure, formatted and then cloned.
    Then I put replaced the internal HDD with the SSD and put the HDD to rest in a drawer forever. If I hold down option upon startup, I'm able to choose the new SSD and launch. But if I just turn my MBP on, I simply get a white/grey screen.
    Not a giant problem, but not sure why it would not just boot normally. Is there some kind of step required to make the new SSD the default startup drive?
    Thank you.

    Shootist007 wrote:
    Also if this one one of these new iMacs that come with the bluetooth wireless keyboards that is also the problem. These BT keyboard are not recognized right away when the system turns on so it is a Hit & Miss type of thing getting any of the Boot Options to work correctly. If you press to soon it is not registered. If you pres to late the system has already bypassed the system to use the boot option keys. this is not only for the Option key press to bring up the Boot selection screen. it also doesn't work for the Recovery HD boot or the boot from DVD key and any other boot option keys.
    As far as I can tell the window in which you should press the key runs from the start (but not before) of the chime to before it ends (bit vague).

Maybe you are looking for

  • How to differentiate b/w Plan and actual data

    Hi, How to differentiate b/w plan nad actual data. Is that value type or Version InfoObject?? What should be the value for that and how it gets populated ?? Regards,

  • How can i send email from a custom domain connected to gmail on iphone?

    Hi there, I am trying to add a gmail account to my iphone 5S which i have added a custom godaddy email to through pop3 but when i add the gmail account i cant send from the custom domain email. lets say the account is [email protected] with a [email 

  • Where I can get the javac.exe source code?

    because I wanna to rewrite it in my own way. Thanks

  • A.M.P.S. - problems seting up on solaris 10

    help, I am trying to setup A.M.P.S. ... I have managed to configure this setup on a windows 2003 server (with headaches) but got it working. (eventually) ... i have joined this list in the hope that someone out there will be able to help. I am a Wind

  • Gross or Net postings

    Hello If I look at the following figure:- http://i168.photobucket.com/albums/u200/masarada/Fig1.jpg and the text from the Documentation states the following:- The system ignores the cash discount amount when gross posting the invoice. The cash discou