I beleive the key repeat depends on the users system settings (at least it
should). The best way is to check if the key is pressed each
update/enterframe.
/David
----- Original Message -----
From: "Martin Scott Goldberg" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Tuesday, August 07, 2007 7:36 AM
Subject: SPAM(6.0) [Flashcoders] Key repeating in AS3?
Has anyone noticed a change in key repeating rate (i.e. when the key is
held down) between as3 and as2?
I just transfered some game code over to as3 for controlling a ship. I.E.
left arrow to turn left, right arrow to turn right.
In as2 the key starts repeating really quick when held down. In as3 it
reads the key once, pauses for a bit and then finally repeats (and repeats
at a much quicker rate than in as2).
I need to get rid of that pause in between the initial keypress and the
repeat so I have a smooth control like I had in as2. Anyone have any
insight?
Marty
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
__________ NOD32 2440 (20070806) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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