-
Senior Member
bug of onKeyUp?
code:
var lis = {};
lis.onKeyUp = function() {
switch(Key.getCode())
{
case Key.LEFT: trace("left");break;
case Key.RIGHT:trace("right");break;
}
};
Key.addListener(lis);
as above code,you press 'left' at first, then don't release 'left' and press 'right',then release 'left'.
if you publish is flash 8 you cannt get the 'left' in output panel,but flash 7/6 can.......
i am sorry for my awful english, but i want to know that is a bug??
thx
-
Senior Member
Yes, looks like a bug to me. Tested it with Flash8 under WinXP and if other key is pressed before first key is released then onKeyUp for first key fails.
-
good to know
Thanks-any more like that???
-
Senior Member
Damned, that's really anoying, I came into this bug too.For games we often have to manage several keys pressed at the same time and how can we turn around this ???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|