Hello.
I'm currently in need of help figuring out on how my to get my GFx movie to know when
my captured keys have been released and then output a fscommand.
This is my GFx setup at the moment but I don't know exactly how to
create the function needed for the release state of the same keys.
Any help would be greatly appriciated. Thanks!
I'm currently in need of help figuring out on how my to get my GFx movie to know when
my captured keys have been released and then output a fscommand.
This is my GFx setup at the moment but I don't know exactly how to
create the function needed for the release state of the same keys.
var keyboardInput:Object = new Object();
Key.addListener(keyboardInput);
keyboardInput.onKeyDown = function(){
var keyPressed:Number = Key.getCode();
if (keyPressed == 87) {
fscommand("moveup")
}
else if (keyPressed == 83) {
fscommand("movedown")
}
}
Key.addListener(keyboardInput);
keyboardInput.onKeyDown = function(){
var keyPressed:Number = Key.getCode();
if (keyPressed == 87) {
fscommand("moveup")
}
else if (keyPressed == 83) {
fscommand("movedown")
}
}
Comment