Note that there are some explanatory texts on larger screens.

plurals
  1. POKey down lags Mouse in Flash with FF
    primarykey
    data
    text
    <p>I'm trying to improve the performance of a flash game we did. It's a game very similar to GTA but for flash... This is why its important that Mouse and keyboard can be used at the same time... </p> <p>But in Firefox (with the last flash version, and the last Firefox version) in some cases if you press a key (WASD) and you move the mouse, the mouse events are dispached after the keyboard events, when you release the keyboard.... </p> <p>I found that a lot of people are having the same problem in their own games but they couldnt solve it!</p> <p>Some help plz!</p> <p>Edit: </p> <p>The full code is very big and i colund't find what part is the problem. But I did this class to do a test (this class is runing with the game :</p> <pre><code> public function MouseAndKeyboardTest() { var stage : Stage = FW.Stage_; stage.addEventListener(MouseEvent.MOUSE_MOVE, MouseMove); stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, KeyUp); } private function KeyUp(e : KeyboardEvent) { trace("Key Up : " + e.keyCode); } private function KeyDown(e : KeyboardEvent) { trace("Key Down : " + e.keyCode); } private function MouseMove(e : MouseEvent) { trace("Mouse Move : [" + e.stageX + ", " + e.stageY + "]" ); } </code></pre> <p>and this was the trace result when you had the key down and the mouse moving at the same time, some mouse move in between and a lot after all key are up:</p> <pre><code> Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 87 Key Down : 65 Key Down : 65 Key Down : 68 Key Up : 65 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 65 Key Up : 68 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 65 Key Down : 68 Key Up : 65 Mouse Move : [353.65, 137.55] Mouse Move : [354.8, 138.4] Mouse Move : [354.8, 137.4] Mouse Move : [362.8, 135.4] Mouse Move : [372.9, 135.25] Key Down : 68 Mouse Move : [449.9, 139.25] Mouse Move : [462.85, 139.35] Key Down : 68 Key Down : 68 Mouse Move : [479.85, 139.35] Mouse Move : [477.85, 139.35] Mouse Move : [469.85, 141.35] Mouse Move : [458.95, 145.2] Key Down : 68 Mouse Move : [445.95, 148.2] Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Key Down : 68 Mouse Move : [330.65, 171.55] Key Down : 68 Key Up : 87 Key Up : 68 Mouse Move : [210, 196.2] Mouse Move : [207, 198.2] Mouse Move : [246.2, 190] Mouse Move : [354.2, 180] Mouse Move : [431.15, 173] Mouse Move : [323.15, 197] Mouse Move : [181.15, 220] Mouse Move : [80.15, 231] Mouse Move : [267.15, 203] Mouse Move : [186.15, 225] Mouse Move : [20.15, 217] Mouse Move : [161.15, 217] Mouse Move : [132.15, 223] </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload