as中禁用ESC键

as中禁用ESC键
复制代码
代码如下:
fscommand ("trapallkeys", "true");
btn.addEventListener(MouseEvent.CLICK,_full)
function _full(e:MouseEvent):void{
stage.displayState="fullScreen";
trace("testit")
}

你可能感兴趣的:(as中禁用ESC键)