Hello all :
I need to listen keyboard event to move to other Timelines. I use script like below but not work !
what's mistake in the code ?
import flash.utils.*;
import flash.events.KeyboardEvent;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.start();
function keyPressed(event:KeyboardEvent):void
{
if (event.keyCode == Keyboard.ENTER)
return true;
return false;
}