由于闪光灯在全屏模式下不允许键盘输入,因此我想知道是否有解决方法吗?
我有一个要在浏览器中全屏运行的闪光灯,需要使用各种键盘输入。我已经阅读了一些有关AIR的内容,但我还没有完全理解它,如果可能的话,我想用另一种方法。
有人知道吗?
最佳答案
public function setFullScreen():void
{
this.width = Capabilities.screenResolutionX;
this.height = Capabilities.screenResolutionY;
this.stage.align = StageAlign.TOP_LEFT;
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
使用
FULL_SCREEN_INTERACTIVE
关于actionscript-3 - AS3 : How to get fullscreen and keyboard input?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2409721/