this is a start at keeping track
//
test = {};
Key.addListener (test);
test.key_down_array = [];
//
test.onKeyDown = function () {
var code = Key.getCode ();
if (this.key_down_array[code] != true) {
this.key_down_array[code] = true;
trace ("onKeyDown: " + code);
}
};
//
test.onKeyUp = function () {
for (var i = 0; i < this.key_down_array.length; i++) {
if (this.key_down_array[i] && Key.isDown (i)==false) {
this.key_down_array[i] = false;
}
}
};
//
--
Michael Bedar
[EMAIL PROTECTED]
On May 10, 2006, at 4:17 PM, Weyert de Boer wrote:
You need to explain the situation a little better. It shoulds like
a good
old fashioned hash array would do the trick, but I'm unsure whether I
understand your problem or not.
Okay, we have broken apart a old keyboard and hooked up some simple
buttons to the print plate this all works nicely. If the user
pusses the
button (which happens when the block is in his standard, because of
the
weight of the block -- the button gets pushed) a key event will be
raised
just like hitting a letter on the keyboard.
Now because the item has been pushed continuously you get a loop of
key
events for the letter associated with the button. Now you need to
activate
a animation by putting the block into his standards in a predefined
order.
Somehow I am not seeing the solution for this problem, I know this
has to
be so easy.
Yours,
Weyert de Boer ([EMAIL PROTECTED])
innerfuse*
http://www.innerfuse.biz/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com