简体   繁体   English

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

[英]Is it possible to maximize the window of a Flash Projector?

I have a presentation built in Flash using AS3 and would like the projector to launch NOT in fullscreen, but as a maximized window. 我有一个使用AS3在Flash中内置的演示文稿,希望投影仪不是以全屏方式启动,而是以最大化的窗口启动。

Is there any way to do this via AS3? 有什么办法可以通过AS3做到这一点?

You can use the Capabilities class 您可以使用Capabilities类

screenResolutionX : Number [static] [read-only] Specifies the maximum horizontal resolution of the screen. screenResolutionX:Number [静态] [只读]​​指定屏幕的最大水平分辨率。

screenResolutionY : Number [static] [read-only] Specifies the maximum vertical resolution of the screen. screenResolutionY:Number [静态] [只读]​​指定屏幕的最大垂直分辨率。

ex: 例如:

 var maxWidth:Number = Capabilities.screenResolutionX;

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

IMHO you can't start a browser "maximized" via AS. 恕我直言,您无法通过AS启动浏览器“最大化”。 Of course you can "maximize" your SWF but if the browser isn't maximized this won't help. 当然,您可以“最大化”您的SWF,但是如果浏览器未最大化,则无济于事。 You also can't start it automatically in fullscreen, this require a user input like a mouseclick. 您也无法自动以全屏模式启动它,这需要用户输入,例如单击鼠标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM