Ophyr
April 10th, 2006, 09:05 AM
Hi Guys,
I was wondering if anyone had a similiar problem I have ?
I don't have the code at hand, but it's not too hard to explain.
The setup is as follows :
I have a listener for keys, and a switch statement that catches the key events. If I press 'left' for example, a variable moveLeft becomes true. If I release the left button, moveLeft will become false.
This seems to work, until I do the following: Press and hold left, press and hold any other button aswell. If I release the buttons, it will not register the keyUp event for some reason. I know the code worked in Flash MX 2004 because I literally copy-pasted it :cross-eye
For now I work with Key.isDown(Key.LEFT), but that looks just plain ugly I.m.h.o...
I was wondering if anyone had a similiar problem I have ?
I don't have the code at hand, but it's not too hard to explain.
The setup is as follows :
I have a listener for keys, and a switch statement that catches the key events. If I press 'left' for example, a variable moveLeft becomes true. If I release the left button, moveLeft will become false.
This seems to work, until I do the following: Press and hold left, press and hold any other button aswell. If I release the buttons, it will not register the keyUp event for some reason. I know the code worked in Flash MX 2004 because I literally copy-pasted it :cross-eye
For now I work with Key.isDown(Key.LEFT), but that looks just plain ugly I.m.h.o...