Hi
I would like to make in AS2 such event that goes on frame named "svi" if space bar is pressed, otherwise (pressing any other key) it should go to to frame named "one"
This is my code and it doesn't work:
var keyListener:Object = new Object();
KeyListener.onKeyDown = function() {
if (Key.getAscii() == 32) {
gotoAndStop("svi");
} else {
gotoAndPlay("one");
};
};
Key.addListener(keyListener);
Can anybody help???