Skip navigation
bashooir
Currently Being Moderated

combine keyboard

Jul 25, 2012 8:43 AM

Tags: #actionscript_2.0

is there's any way to combine keyboard in actionscript 2.0?

 
Replies
  • kglad
    62,157 posts
    Jul 21, 2002
    Currently Being Moderated
    Jul 25, 2012 9:16 AM   in reply to bashooir

    you can use keyboard input with as2 but i'm not sure what you mean by "combine".

     
    |
    Mark as:
  • kglad
    62,157 posts
    Jul 21, 2002
    Currently Being Moderated
    Jul 25, 2012 9:30 PM   in reply to bashooir

    probably but again, i'm not sure what you mean by "control a move" on a movieclip.

     

    you can use the key class to check for key presses.

     

    var lo:Object = {};

    lo.onKeyDown = function () {

    switch(Key.getCode())[

    case Key.LEFT:

    // do whatever

    break;

    case Key.RIGHT:
    // do whatever else;

    break;

    // etc

    }

    }

    Key.addListener(lo);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points