Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 铬合金中的AS3全屏延迟_Actionscript 3_Google Chrome_Fullscreen_Delay_Stagedisplaystate - Fatal编程技术网

Actionscript 3 铬合金中的AS3全屏延迟

Actionscript 3 铬合金中的AS3全屏延迟,actionscript-3,google-chrome,fullscreen,delay,stagedisplaystate,Actionscript 3,Google Chrome,Fullscreen,Delay,Stagedisplaystate,如何在stageDisplayState更改之前隐藏所有控件? setTimeout和Timer不能用于延迟切换到全屏。 我已经创建了要在显示状态更改之前显示的幕墙图元。 Timeout、timers和mousedown事件不会在我的应用程序中提供任何更改事件,所以我可以做什么 stage.addEventListener(MouseEvent.CLICK, function (e:MouseEvent):void { //curtain shows AFTER enter to fu

如何在stageDisplayState更改之前隐藏所有控件?
setTimeout
Timer
不能用于延迟切换到全屏。 我已经创建了要在显示状态更改之前显示的幕墙图元。 Timeout、timers和mousedown事件不会在我的应用程序中提供任何更改事件,所以我可以做什么

stage.addEventListener(MouseEvent.CLICK, function (e:MouseEvent):void {

    //curtain shows AFTER enter to fullscreen mode - must before
    curtain.visible = true;
    stage.displayState = StageDisplayState.FULL_SCREEN;
});

亲爱的动作脚本大师,有什么建议吗

你不可能真正做到这一点。
您只能在响应用户单击()时进入全屏模式

因此,如果您暂停执行任何动画或屏幕更新,您将不再直接响应用户的单击

你唯一能做的就是在窗帘上设置动画,然后弹出另一个按钮让用户点击进入全屏。不过,这不是一个非常优雅的解决方案