Flash in browser for full screen viewing

How can I make my flash applications in a browser in full screen? I know that the stage can be put into this mode, but when I launch the application in any browser, this will not work. So this can be done, but how?

+4
source share
3 answers

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

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

and the following attribute for your <embed> tag:

 allowFullScreen="true" 

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

In your Flash / Flex file, you need to give the user the ability to initiate full-screen mode - you cannot force full-screen mode to be activated without user initiation . Whatever you do, include this code in your answer:

 stage.displayState = StageDisplayState.FULL_SCREEN; //Flash systemManager.stage.displayState = StageDisplayState.FULL_SCREEN; // Flex 
+12
source

I believe this is a simple actionscript command. A source

  fscommand( "fullscreen" , "true" ) 
-2
source

Source: https://habr.com/ru/post/1277528/


All Articles