Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-29 Thread Danny Kodicek
It would be not too hard to write a class that listesn to the keyboard, and when an onKeyDown event is triggered, it reads the key and adds the keycode to an array. I can't speak for Flash in this regard, but I'm willing to bet it would behave similarly to Director and that this method would

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-29 Thread Newsdee
It's a bit scary that Director has a similar problem... how do Director programmers get around it? On 12/29/05, Danny Kodicek [EMAIL PROTECTED] wrote: In Director, at least on Windows, if you press the A key and then the B key, then release the A key, you get a keyUp event for B, not A. So

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-29 Thread Danny Kodicek
It's a bit scary that Director has a similar problem... how do Director programmers get around it? We have the keyPressed() function (equivalent to key.isDown()) :) Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] No Key.isDown() method in AS3?

2005-12-28 Thread Joe Cutting
I was going over the AS3 documentation and I've noticed that the isDown() property was removed for security reasons from the new Keyboard class. Is there another way of doing the same thing then? Are we now forced to use the event-driven onKeyDown()? Here's the page where I'm reading:

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-28 Thread Newsdee
I can see a workaround though: It would be not too hard to write a class that listesn to the keyboard, and when an onKeyDown event is triggered, it reads the key and adds the keycode to an array. The keycode is then removed at an onKeyUp event. And the isDown method would just have to look

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-28 Thread hank williams
I would suggest reposting this next week when the adobe people get back from vacation. Regards Hank On 12/28/05, Joe Cutting [EMAIL PROTECTED] wrote: I was going over the AS3 documentation and I've noticed that the isDown() property was removed for security reasons from the new Keyboard

Re: [Flashcoders] No Key.isDown() method in AS3?

2005-12-28 Thread Fumio Nonaka
Adding true to an array at the index of the keycode instead of adding the code to it might be better on looking through the array. Because you do not have to use for loop. Adding: pressedKeys_array[Key.getCode()] = true; Looking: bIsDown = pressedKeys_array[Key.getCode()] _ Newsdee

[Flashcoders] No Key.isDown() method in AS3?

2005-12-27 Thread Newsdee
Hi all, I was going over the AS3 documentation and I've noticed that the isDown() property was removed for security reasons from the new Keyboard class. Is there another way of doing the same thing then? Are we now forced to use the event-driven onKeyDown()? isDown() is extremely useful... and