# PLEASE HELP ME! Flash Locking Up

**URL:** <https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058>\
**Category:** programming\
**Created:** [June 12, 2008, 7:51am UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058 "2008-06-12T07:51:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jav](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jav](https://forum.kirupa.com/u/Jav)\
**Post date:** [June 12, 2008, 7:51am UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058/1 "2008-06-12T07:51:21Z")

</div>

I’ve made plenty of flash games before and I’ve never seen this problem happen.  
I’m working on a game with similar workings to GTA1, as in your in a car and u drive around birds eye view.

The issue I’m having is that I have went to the effort of making flash not ‘lag’/slow down so the frame rate stays pretty good. However for some reason after holding down a button or 2 (eg. up to drive, left to turn, ect) flash locks up. The program runs normal, framerate is normal, but any interaction is locked up. When this happens my car just keeps driving.

I put up a display to show what buttons are being pressed and sure enough flash is stuck thinking im pressing keys when im not. I also can’t close flash until it returns to normal.

Obviously this is bad and I was hoping someone would know why flash is doing this.  
Can someone please help me.

---

<div class="post-metadata">

**Author:** ![andrew2110](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@andrew2110](https://forum.kirupa.com/u/andrew2110)\
**Post date:** [June 12, 2008, 1:06pm UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058/2 "2008-06-12T13:06:08Z")

</div>

This is probably of no use at all, but when I started dealing with user keyboard input I was getting some strange results because Keyboard shortcuts were enabled in the flash player which overrided the input I wanted for my game, so make sure thats disabled. Other than that the only thing I can think of that I’d do next is that I’d put in break points everywhere to see where it starts to go wrong…

---

<div class="post-metadata">

**Author:** ![Lolghurt](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Lolghurt](https://forum.kirupa.com/u/Lolghurt)\
**Post date:** [June 18, 2008, 6:48am UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058/3 "2008-06-18T06:48:33Z")

</div>

Why not post the script so people can help you fix it?

---

<div class="post-metadata">

**Author:** ![Jav](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jav](https://forum.kirupa.com/u/Jav)\
**Post date:** [June 26, 2008, 4:29am UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058/4 "2008-06-26T04:29:16Z")

</div>

The code in all would be pages long, not to mention some methods i would rather not share.  
Its not that theres an error in the code, flash seriously just locks up, and no inputs (eg press key, release key, minimizing, closing,(the top right 3 buttons), ect) will work.  
They do eventually work, and then its like everything i did catches up.  
Just to remind, its is not a loop in the code or anything like that, it is seriously flash just locking up.

---

<div class="post-metadata">

**Author:** ![dlgamer](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dlgamer](https://forum.kirupa.com/u/dlgamer)\
**Post date:** [June 26, 2008, 4:43am UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058/5 "2008-06-26T04:43:53Z")

</div>

do you have an infinite loop anywhere? that could end up locking up the game. double check you loops coding.

---

<div class="post-metadata">

**Author:** ![Insane\_au](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@Insane\_au](https://forum.kirupa.com/u/Insane_au)\
**Post date:** [June 26, 2008, 7:26am UTC](https://forum.kirupa.com/t/please-help-me-flash-locking-up/263058/6 "2008-06-26T07:26:50Z")

</div>

Are you storing user input in a buffer or are you acting on it as soon as a key is pressed?  
If so there could be a problem with that, otherwise you may be trying to run too much code per frame and it takes a while for flash player to catch up.
