I've found some information on the subject:

It seems that the limitation is the hardware, it depends on the keyboard you're using
:-(

jan



_jan Guichelaar [woedend!] wrote:
Hi All

I have a weird problem with checking if multiple keys are down.
In the code example beneath, i check if the 4 arrow buttons (not on the numpad) are down or not.

All individual, work fine, 2 at the same time works fine as well, but the third button i press isn't noticed. And even weirder sometime it does. It depends on the combination you make.

Anyone has a solution, or a clue?
thanx
jan

37 = left
38 = up
39 = right
40 = down

CODE:
this.onEnterFrame = function() {
  if(Key.isDown(37)) {
      trace('37 is down');
  } else {
      trace('37 is NOT down');
  }
    if(Key.isDown(38)) {
      trace('38 is down');
  } else {
      trace('38 is NOT down');
  }
    if(Key.isDown(39)) {
      trace('39 is down');
  } else {
      trace('39 is NOT down');
  }
    if(Key.isDown(40)) {
      trace('40 is down');
  } else {
      trace('40 is NOT down');
  }
}




_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


--
Jan Guichelaar
---------------------------
[EMAIL PROTECTED]
http://www.woedend.nl
---------------------------
Woedend!
Magna Plaza
Spuistraat 139 J
1012 SV Amsterdam
---------------------------
tel +31 [0]20 6764999
fax +31 [0]20 4714446
---------------------------




_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to