I am very new to Flash, but very excited to learn!
Right now, I am working on a very simple project that is 600x400px with some shapes and buttons on the stage. However, I wanted to know if there was a way that I could include a button that (when clicked) would make the .swf file go into a fullscreen mode, and also keep everything on my stage in scale and not distort everything.. (Think of a Youtube video going fullscreen). Then having another button appear to make it a small screen again.
I have had a very hard time searching for the answer, because there is so much to do with the flash player and making it full screen--but that mainly had to do with movies.
I should also say, that I am not planning to put this on a website; but that it would be acessed by just a computer. (It's a educational jepordy game that I am making for teacher). So I am not sure if that would make a difference in the answer.
Full-screen can be toggled on or off using the Stage class. To go to full-screen mode in Action Script 2, use:
To go back to window mode
And you have to set value in the swf embedding object as shown below:
width="550" height="400" id="sample" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="sample.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#333333" />
<embed src="sample.swf" quality="high" bgcolor="#333333"
Thanks for your quick reply!
I have seen this answer (or an answer like it) to other people's questions. However, I am not planning to put this on a website--so would the embedding code be placed somewhere else?
Also, where would the Stage.displayState="fullScreen"; code go? On a button?