A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preventing Enter key from working as a play button

  1. #1
    Member
    Join Date
    May 2003
    Posts
    80

    Preventing Enter key from working as a play button

    I would like to disable the enter key from working as a play button for Flash 8 or Flash in general. I thought that I would outsmart it by having a key listener, but I was wrong.

    var keyListener:Object = new Object();
    keyListener.onKeyDown = function() {
    switch (Key.getCode()) {
    case Key.ENTER :
    break;
    }
    };
    Key.addListener(keyListener);

  2. #2
    Member
    Join Date
    May 2003
    Posts
    80
    So I guess it must not be possible.

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