AS2 Q
AS2 Q
- Started
- Last post
- 1 Response
- armed_rob
How?
keyPress "<Escape>".gotoAndstop(2);
- nadnerb0
var mykeyListener:Object = new Object();
mykeyListener.onKeyDown = function() {
trace("Key Pressed");
if(mykeyListener.getKeyCode() = Key.ENTER) {
gotoAndStop(2);
}
}
mykeyListener.onKeyUp = function() {
trace("Key Released");
}
Key.addListener(mykeyListener);somethin like that
Havent used as2 in a while, but look into the Key class and its method getKeyCode in particular. Keys have number codes as well. The help documentation in flash should have a good example you could probably just copy and paste.