Skip to main content
Participating Frequently
April 23, 2008
Question

multiple key simultaneous presses

  • April 23, 2008
  • 1 reply
  • 386 views
Dear people

please does anyone know using the key.isDown handle how many simultaneous key presses Actionscript 2 can handle, I can't get it to recognise more than 3 simultaneous max.

This topic has been closed for replies.

1 reply

Inspiring
April 23, 2008
I got this to work:

//ctrl + shift + pageUp + pageDwn + End

var myListener:Object = new Object();
myListener.onKeyDown = function() {
if ((Key.isDown(16)) && (Key.isDown(17)) && (Key.isDown(33)) &&
(Key.isDown(34)) && (Key.isDown(35))) {
trace("here");
}
};

Key.addListener(myListener);


--
Dan Smith > adobe community expert
Flash Helps > http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv

"lajettee" <webforumsuser@macromedia.com> wrote in message
news:funaeg$76s$1@forums.macromedia.com...
> Dear people
>
> please does anyone know using the key.isDown handle how many simultaneous
> key
> presses Actionscript 2 can handle, I can't get it to recognise more than 3
> simultaneous max.
>
>
>
> if ((Key.isDown(65)) && (Key.isDown(66)) && (Key.isDown(67)) &&
> (Key.isDown(68))) {
>
> .....do this.....
>
> }
>


lajetteeAuthor
Participating Frequently
April 24, 2008
thanks dan, I'll give it a go.

t