A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Action Script Alt key sequence detection

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    1

    Post

    I am using Flash 5 to to a company demo. In the demo I want to allow the user to interact by clicking on boxes and entering specific key sequences on the keyboard. In this particular case the sequence Alt A needs to be detected. That is the user presses and holds the "ALT" key and also presses the "A" key.

    The result of the action would be:
    when the user presses and olds the Alt and then presses the "A" key, flash will advance to the next frame (play()).

    Looking at the Flasg Actionscipt manual, it seems like Key.isDown(18) would let me know that the Alt key is pressed but what happens when the user also presses the "A" key?

    Any code snippet would be helpfull

    Thanks

  2. #2
    Member
    Join Date
    Jul 2001
    Posts
    72
    Visit http://www.macromedia.com and there in the tutorial section you'll find an actionscript made puzzle game tutorial. As far as I guess, that's the best answer to your question. I'm sorry 'cause I'm still newbie in Actionscript. Hahaha.

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