Key.getCode() problems on PC and published .exe, .swf and .app

Hi!
I have a kind of unusual problem... Im building a prototype for a UI wich you can navigate around in. And we use a mockup-prototype-model with a numeric keyboard built in and connected trough USB to fetch keypresses and use that as a joystick to navigate around and get a feeling how it would feel like to navigate around using a joystick in your hands.
The problem is that it sends kind of unusual keypresses from the joystick.
Everything works fine when I test the movie in Flash CS5 on a mac (cmd + enter). But not on a PC or in all of the published modes (.exe, .swf or .app).
The codes I use in my if statements to navigate that doesnt work is:
Key.getCode() == 188, Key.getCode() == 74 and Key.getCode() == 54
Today I use a double setup of keys so that I can use my keyboard on the computer as a backup to navigate around. And those keypresses works fine without problems. It is just those three (188, 74 and 54) that doesnt work.
example code:
keyListener.onKeyUp = function() {
    trace("UP -> Code: "+Key.getCode()+"\tASCII: "+Key.getAscii()+"\tKey: "+chr(Key.getAscii()));
if((freezeActive == true && Key.getCode() == 188) || (freezeActive == true && Key.getCode() == 72)){
                    freezeNavigateLeft();
Key.addListener(keyListener);
I have made sure that flash has focus when ive tried this. But it is so odd that it works when I test the movie but not when I run it on a PC or in any of the published applications...
Have any of you encountered that some keypresses doesnt work?
Best regards
Joel

Think ive solved it!
It seems like the PC recieves different signals from the input device in published mode then on the mac... so I had to trace them out in debugmode one by one and got different signals. So now it works!
/Juhb

Similar Messages

  • Image display problem in safari and app store

    i have problem as pictures appears pixelated in safari and app store i tried to adjust display settings but there is no difference
    file:///Users/macbookair/Desktop/Screen%20Shot%202013-12-30%20at%207.08.03%20PM. png

    Reset PRAM.  http://support.apple.com/kb/PH4405
    Best.

  • Problems in settings and app store

    my cuzin has an ipod 3rd gen and i cant acsses app store it says review date&time and i already fix the date & time and it still wont let me acsses app store... plz help

    Power off and then back on the router
    Go to Settings>iTunes and App Store nd sign out and sign back in
    The other itr\ems of:
    Can't connect to the iTunes Store

  • Connection key compatibility problem between Mac and Windows

    I'm wondering if anyone has had this problem and came up with a work-around?
    We are rolling out Contribute CS5 to some employees.
    The designers (I'm one of them) are all on Macs. Everyone else is on Windows XP.
    We are connecting to our sites via local/network. IT didn't want to set up FTP (I won't go into why right now).
    So, here is where the problem is... We set up the site and do the first connection on our Macs. Then when we send out a site key, to a Windows user, the key is no good. This is because Macs handle paths to network shares differently than Windows does.
    I thought the solution would be to customize the key with the Windows share path before sending it to the Windows users. However, Contribute wants to verify the path before letting me continute to make a customized key. And that is where I'm stuck. Is there a solution to this - besides switching to FTP?
    Thanks,
    Ward

    For windows users can you create a connection key in Windows machine and send the same.

  • Dont uptade messages in Gmail app also in Viber. And have problems with Weather and App store. Can you help me?

    iOS is latest

    I have been having this exact same problem on/off. Not ALL PC users though, just some. I DO select the Always Send Windows-friendly Attachement, but apparently it does not always work. I have to tell my PC friends that if they don't see the file attached, to right click on the embedded image and copy.
    It would be great if this was cleared up.
    Pamela
    Suddenly, people are having problems saving JPEGS
    that I have attcahed to my email. On the PC end, it
    looks as if the image is being imbedded in the email
    rather than being sent as an attachment.
    I am using the Mail app for the mac. When attaching
    files, I simply drag and drop the JPEG file onto the
    Mail app icon in my Doc. It opens an new email with
    the file "attached", I compose my message annd send
    it.
    I have never had problems with this before - it just
    seems to have started all the sudden.
    Does anybody know why this might be happening and/or
    a good way to get around it?
    - IAN
    PowerBook G4 & soon a G5   Mac OS X (10.4.5)  

  • Problems with iMessage and Apps requesting code verification

    Hi all,
    I've just bought an iPhone 4S and tried to activate iMessage and other apps like Viber and Whatsapp with no luck
    Each time I tried to activate iMessage, i was charged an international SMS, and got an "Unsuccessful Activation" or "Error Occurred" message! Even with a great Wi-Fi\3G connections!
    For Viber and Whatsapp, no verification code were receipt yet, I'm still waiting for ever!!
    I'm not sure if it was a configuration mismatch\ or an internet connection or even a malware issue!!
    Please Help!!
    Thanks in advance,
    Ibrahim

    Hi OCRSnob,
    Thanks for visiting Apple Support Communities.
    I would try steps 1, 3 and 5 of the iPhone Troubleshooting Assistant:
    http://www.apple.com/support/iphone/assistant/phone/
    Before restoring your phone (step 5), you may also want to try troubleshooting your data connection:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Best Regards,
    Jeremy

  • Installed OS X Maverick on Macs...having problems slower system and apps freezing

    I installed and downloaded OS X Maverick last week and installed it in relatively new Macbook Pro and IMac...both purchased last year...have experienced applications freezing, slower start up time several times, once was unable to start my Macbook Pro...had to reboot..and slower system response...anyone else experiencing the same?

    Checked to see how much space is available ??
    Click your Apple menu  top left in your screen. From the drop down menu click About This Mac > More Info > Storage. Make sure there's at least 15% free disk space.
    As for slow startup, delete all apps in System Preferences > Users & Groups > Login Items
    Same for HD > Library > StartupItems
    Anti virus software can slow your Macs down if installed.

  • Problems with ePrint and apps

    Hi,
    I have a new HP Envy 120. Everything has worked perfect during installation and the wireless symbol it lit with full strength. I have connected to our wireless home network and it looks like it it connected. When I try to use eprint nothing happens and when I try to use apps the printer say that it cannot connect to the web services. What is wrong?
    BR
    Anna-Karin

    Hi @KaQan, 
    Welcome to the HP Support Forums.  I understand that you are getting a connection error message when attempting to enable the web services on your Envy 120 printer.
    Please set a manual IP address and manual DNS servers for the printer.  I have included a link to another post with the steps, including screen shots, on how to do this.  Please do not worry that the screen shots show a Photosmart 7510 printer, the steps are the same.
    Please let me know the outcome.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Problems with ipad and app sync

    I bought a couple of apps with my ipad, and when I connect it to my imac, itunes tells me that these apps cannot be transferred to the computer because it´s not activated. But when I activate it, it tells me that it is already activated. I´m using only one appleID. I don´t know what to do.I bought keynote for ipad with my imac and I can´t transfer it to my ipad. I would be happy if someone can help me.

    I had a bit of this a little while ago, then it went away. I kept activating the iMac in iTunes, and eventually it shut up.
    Try restarting the iPad, and if that doesn't work, back it up and do a Restore
    To get Keynote on the iPad, in the interim go to the App Store on iPad, and check Purchases - keynote should show up there and you can download it.

  • HT3702 Problems with card and apps

    Is their a chance I can get a refund I download a app then the next days I check my email saying there were purchase on my iTunes gift card that was not authorized I want to know if I can get that back on my card?

    If it's a purchase that you didn't make then you can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Hello I have a problem with my ipod touch 1G the problem is that see me key to the floor! And when recogi not prendia after 5 minutes prendio but it gave to me the surprise of which the battery had finished completely! What I did was to set it to load wit

    Hello I have a problem with my ipod touch 1G the problem is that see me key to the floor! And when recogi not prendia after 5 minutes prendio but it gave to me the surprise of which the battery had finished completely! What I did was to set it to load with the USB but do not load the battery me the icon of the battery appear and below of her the beam that indicates that this being loaded but this way I have left it the whole yesterday and what goes of today and continues without loading anything! They can help me porfavor I am grateful for them to him very much!   And my PC does not detect it not itunes

    Try the not-charging topic of:
    iPod touch: Hardware troubleshooting
    It could be that the battery is dead.

  • Compaq CQ60-615Dx keyboard displays wrong key. Problem is only with the 2 w s and x keys.

    Problem is only with 2 w s x keys.  Tried updating BIOS and num lock suggestion.  Looking for instruction for removing keyboard or any suggestions

    Hi,
    This may well be a Hardware issue with the keyboard itself, but re-seating the ribbon connection to the Motherboad and the keyboard is certainly worth trying.
    The procedure to remove the keyboard is detailed starting on Page 56 of your Maintenance & Service Guide.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Problem With Home And End keys

    Hi
    I cleaned the keyboard of my ibook G4 about two days ago. The ibook was switched off at the time but now I can't seem to access the left (Home) and right (End) cursor keys (When pressed nothing happens).
    The up (Pg Up) and down (Pg Dn) keys are working fine. I've obviously pressed a combination of keys that has resulted in turning off my Left and Right cursor keys. How on earth do I rectify what I've done. I've looked in my G4 manual but to no avail. If somebody can help me that would be terrific.
    Many thanks
    L.

    zsh unfortunately doesn't read /etc/inputrc, which tells the shell what commands sent by the terminal emulator mean.
    add the following to your .zshrc, and you should be fine.
    # key bindings
    bindkey "e[1~" beginning-of-line
    bindkey "e[4~" end-of-line
    bindkey "e[5~" beginning-of-history
    bindkey "e[6~" end-of-history
    bindkey "e[3~" delete-char
    bindkey "e[2~" quoted-insert
    bindkey "e[5C" forward-word
    bindkey "eOc" emacs-forward-word
    bindkey "e[5D" backward-word
    bindkey "eOd" emacs-backward-word
    bindkey "ee[C" forward-word
    bindkey "ee[D" backward-word
    bindkey "^H" backward-delete-word
    # for rxvt
    bindkey "e[8~" end-of-line
    bindkey "e[7~" beginning-of-line
    # for non RH/Debian xterm, can't hurt for RH/DEbian xterm
    bindkey "eOH" beginning-of-line
    bindkey "eOF" end-of-line
    # for freebsd console
    bindkey "e[H" beginning-of-line
    bindkey "e[F" end-of-line
    # completion in the middle of a line
    bindkey '^i' expand-or-complete-prefix
    by the way, i've changed some of the keys. for instance, ctrl-left and ctrl-right move back and forward by whole words. default is alt i believe.

  • CP File Cannot Publish EXE Locally

    Hello,
    I'm working with a large (70 slide) presentation in Captivate 3 and it no longer allows me to publish it as a standalone Windows executable.  The "select Flash version" select and "Publish" button are greyed out.  Publishing to SWF works fine, and I have the latest Flash Player installed.  Stranger still, I CAN publish an EXE if I use the FTP option.  So I've been exporting an exe to my FTP server, then downloading it back onto my computer.
    It is specifically a problem with this CP file; I can publish other projects without issue.  If I copy all my slides and paste them into a new project, it resolves the problem but I lose all of my navigation data (all buttons lose their "jump to" target and revert to "continue", keyboard shortcuts for 508 compliance are lost).
    The workaround of publishing to FTP will let me keep my deadline, but I'd rather not leave the project file in this broken state.  Any way to restore desktop exe publishing without redoing all my navigation?

    Nevermind, I wrote my own launcher in Flash.  At least this way it doesn't take forever to load from CD, and I don't have to re-publish the exe and app files every time.
    It still would be nice if the publishing options within Captivate were a little more robust (read: not terrible).

  • Print final (Certificate) slide in published .exe

    Hi Captivate-Guru's,
    I'm looking for a way to provide a print button on my final
    slide. This slide contains a certificate (not a widget, just a .jpg
    with a variable textfield for the student-name). The button has to
    work in a published .exe of this project. I believe java-script
    just doesn't cut it.. :(
    Please advise how to accomplish this.
    Thank you!

    Hi, everyone out there.  I know that printing a slide seems to be a huge problem for everyone. All I want to do is to allow my end user to print a certificate template that I imported as a powerpoint slide. I've built in the variables and it works fine.
    The problem is printing easily without printing the printer icon or playback bar or buttons .... just the certificate landscape on 8 1/2 by 11 paper.  I've tried the widgets that are loaded in Adobe Captivate 4. The print.swf file prints the icons. So does the Printslides.swf. I haven't been able to find any that do the trick.
    I'm hoping someone reading this has been able to solve this.  Anyone know a technique that actually works in Captivate 4?

Maybe you are looking for

  • Best Way To Setup SGD With RSA Authentication

    At the moment, I've got RSA Authentication working with SGD 4.60-911. Now under my setup, I've manually created a user profile and assigned a couple of Terminal Server sessions to it and everything is working. I'm not sure if this is the best or, mor

  • Xcelsisus connections mappings get lost once we export excel from xlf file

    Hi All, I am creating a dashboard in xcelsius 2008. I have around 50 live office objects and hence 50 live office connections in the xlf file. When I exoprt the excel from the xlf file and when i re- import the excel all the old live office connectio

  • Consuming WebService SAP (J2EE)

    I´m working with Delphi 2007 for Win32 Enterprise and I´m using Delphi to make a client to consuming one SAP (J2EE) WebService, but, there is a problem with my Delphi´s client. The SAP show one error: 001B784233A4004A000000030000195400043C12D73325C4

  • Exit in sales order creation

    Hi Firstly Can any one pls tell me how to create exit in the sales order so that after creation of sales order automatically planned orders get generated for number of line items. Secondly will exit work for the sales order which i will change with T

  • Elder "domain" file opens only new iWeb site

    Hi folks, [I'm a newbie on this site, tried to find the answer in other topics, but couldn't find....] While buying a new hard disk, I made a simple backup of my old folders on my Ipod. Importing user/library/application support/iWeb/domain on to my