是否可以最大化 Flash 投影仪的窗口?

发布于 2024-09-14 05:08:47 字数 91 浏览 2 评论 0原文

我有一个使用 AS3 在 Flash 中构建的演示文稿,希望投影仪不以全屏方式启动,而是作为最大化窗口启动。

有什么办法可以通过 AS3 做到这一点吗?

I have a presentation built in Flash using AS3 and would like the projector to launch NOT in fullscreen, but as a maximized window.

Is there any way to do this via AS3?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淡莣 2024-09-21 05:08:47

您可以使用功能类

screenResolutionX : Number
[静态] [只读]​​ 指定屏幕的最大水平分辨率。

屏幕分辨率Y:数字
[静态] [只读]​​ 指定屏幕的最大垂直分辨率。

例如:

 var maxWidth:Number = Capabilities.screenResolutionX;

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3 /

You can use the Capabilities class

screenResolutionX : Number
[static] [read-only] Specifies the maximum horizontal resolution of the screen.

screenResolutionY : Number
[static] [read-only] Specifies the maximum vertical resolution of the screen.

ex:

 var maxWidth:Number = Capabilities.screenResolutionX;

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/

千鲤 2024-09-21 05:08:47

恕我直言,您无法通过 AS“最大化”启动浏览器。
当然,您可以“最大化”您的 SWF,但如果浏览器没有最大化,这将无济于事。您也无法全屏自动启动它,这需要用户输入,例如单击鼠标。

IMHO you can't start a browser "maximized" via AS.
Of course you can "maximize" your SWF but if the browser isn't maximized this won't help. You also can't start it automatically in fullscreen, this require a user input like a mouseclick.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文