This must be a common problem but i can find the asnwer online. I need to have a movie play when the right cursor is pressed, and go to the first frame with the left is pressed. Canβt be too hard but canβt get it
I tried the below and it works but doesnt detect a specific key.
any help much appreciated!!!
onKeyDown = function() {}
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
trace("DOWN -> Code: β+Key.getCode()+β ACSII: β+Key.getAscii()+β Key: "+chr(Key.getAscii()));
};
keyListener.onKeyUp = function() {
trace("UP -> Code: β+Key.getCode()+β ACSII: β+Key.getAscii()+β Key: "+chr(Key.getAscii()));
};
Key.addListener(keyListener);