Flash in a browser to full screen

瘦欲@ 提交于 2019-11-30 05:29:19

In the HTML including the Flash SWF, add the following parameter to your <object> tag:

<param name="allowFullScreen" value="true" />

and the following attribute to your <embed> tag:

allowFullScreen="true"

Or, if you are using SWFObject (as you should be), add the allowFullscreen parameter to your embed code. See the SWFObject documentation for the various ways to this.

In your Flash/Flex file, you need to provide the user a way to initiate fullscreen mode - you cannot force fullscreen without the user initiating it. Whatever you have the user do, include this code as a response to it:

stage.displayState = StageDisplayState.FULL_SCREEN; //Flash
systemManager.stage.displayState = StageDisplayState.FULL_SCREEN; // Flex

I believe it is a simple actionscript command. Source

 fscommand( "fullscreen" ,  "true" ) 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!