A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Some keycodes dont work

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    Some keycodes dont work

    I want to use the keycode for WASD, but only W and D work. i tested RDFG aswel, but only D and G works there.
    keycodes i used for wasd:
    PHP Code:
    W:uint 87,
    A:uint 65,
    S:uint 83,
    D:uint 68 
    whats wrong?
    I program in AS3 only.

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    You need to give us more info. Do you mean simultaneously? Have you tried in browser rather than in test mode? I know I've been able to capture "A" before, I did it in the demo for the SpecificKeys utility I made:
    http://cosmodro.me/blog/2008/sep/2/specific-keys/

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    Sorry for the bad explanation, I should have given more info.

    I don't mean simoultaniously, i just mean when i press it normally.
    I just checked, and you're right, it does work in the browser, but not in the test mode. both the conventional method and your class (wich is pretty handy btw), work in the browser, but not in the test mode.
    Does it have to do with my setting sin CS3?
    I program in AS3 only.

  4. #4
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    I'm not sure of the exact settings, but yeah it's the test movie player capturing keyboard input before the swf it's testing gets to see it. There should be a way to turn it off.

  5. #5
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    While playing the swf inside Flash it's Control > Disable Keyboard Shortcutes.

    Although I just tested a swf with wasd controls and they're all working fine with the shortcuts enabled...

  6. #6
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    Ah thanks. its ok now.
    I don't use the english version so maybe my key shortcuts are different.
    anyway, thanks!
    I program in AS3 only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center