A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Key.getCode();

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    6

    Key.getCode();

    hi
    I wonder how to use the script Key.getCode(); to let a player choose a key to control a movieclip?

    cheers.
    mathin.

  2. #2
    feeling froggy
    Join Date
    Jul 2002
    Posts
    179
    first of all what do you mean by control?
    second, you can detect keypress like this:
    code:

    onClipEvent(keyDown){
    if(Key.isDown(Key.DOWN)){
    trace("poo");
    }
    }


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