stage.addEventListener(KeyboardEvent.KEY_DOWN,downF);
function downF(e:KeyboardEvent):void{
if(e.keyCode==13){
gotoAndPlay('some animation after enter pressed');
} else {
nextFrame(); // though i doubt this is always correct.
}
}
stage.addEventListener(KeyboardEvent.KEY_DOWN,downF);
function downF(e:KeyboardEvent):void{
if(e.keyCode==13){
gotoAndPlay('some animation after enter pressed');
} else {
nextFrame(); // though i doubt this is always correct.
}
}