A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: keypress or Key object keycode for anykey?

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    6
    Does anyone know if there is a keycode that can be used to represent ANY key for use in an on(keypress "???") or Key.isdown(???) action?

    i.e. action occurs when ANY key is pressed, as opposed to a specific key.

    If none exists then do you know of a way around this?

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    Hi,

    How about this,

    create a movie clip, now give it the clip event

    onClipEvent(keyDown) {
    // perform action
    }

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    6
    That was too easy wasn't it? Thanks heaps,
    Cleay.

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