I'm new to AS3. I tried to move a object with keyboard event. I used if/else condition to check that if keycode is this... then statement run.
But I'm not able to do it with switch method. I want to take a variable. what will store the keycode which key I'm pressing. & It will check for statement that I pressed 37 key, so object go to left.
So my problem is that, how to store current keycode (what key is pressing) to variable?