简体   繁体   中英

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.

Is there any way to do this via AS3?

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/

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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