You mean the new fullscreen? The Youtube/HTML5/Chrome/OS-X combination uses OS-X Lion built-in fullscreen. This is not possible in Flash (yet). @pretender: Did you call fullscreen in Unity or in ActionScript? I also think (not sure) that Flash still can't use the keyboard in fullscreen applications, so it might be a bit useless anyway.
I believe full screen keyboard control is available as part of Flash Player 11.3. Currently in beta, more details here:
Fullscreen can only be toggled through the user interacting with the player. Since all input in Unity is handled on OnGUI which is frame based you cannot toggle fullscreen from there. What you need is to create a flash display object and have that listen for mouse clicks etc and then toggle fullscreen from that event handler. In a step-by-step fashion: 1. Load unity through a Flash preloader SWF. 2. Have unity trigger the display of a Sprite on screen (preferably where your button is in screen space). 3. Setup a listener to said Sprite. 4. React to mouse clicks directly on the sprite (circumventing Unity's Input handling). Toggle fullscreen by setting the Stage.displayState-property.
so it is possible to trigger fullscreen? i am new to flash is there any actual example of how to do this properly? thanks!
A working (except for scaling of unity content which Ralph has told us is currently broken) project is available here: https://docs.google.com/folder/d/0B0XL5dRR-RFGdnhXcmtHYXVHLVE/edit
manually setting the rect for rendering is fixed; scaling should be fine too. Furthermore, fullscreen with interactive also works ( all in 4.0 of course).
Project in the link seems to have some issues. Does anyone have an updated version that works? When i update the project all the scripts/materials/animations on the cube show as "missing"