Hello,

I would like to use AS3 to automatically resize the browser to fullscreen so I can loose all the chrome. I have been experimenting a lot but have been unsuccessful.

Here's an example of the effect I would like: anasomnia.com
(there's a fullscreen icon in the bottom right of the browser to trigger the fullscreen)

I have tried this code, however I ran into trouble:

Actionscript Code:
addEventListener(Event.ENTER_FRAME,myFunction);
function myFunction(event:Event) {
    stage.displayState=StageDisplayState.FULL_SCREEN;
}

What happens is that when I test the file in flash CS5.5, the swf navigates fine, but no fullscreen effect occurs. When I export to Flash player 10.2, the file goes fullscreen but then it sticks on the frame where the action is located and the playback begins to flicker. If I create a projector and comment out the fullscreen code, and instead use the fullscreen option under VIEW, the fullscreen kicks in but then the playback fails to work properly. When I take the swf into a browser window, it doesn't respond to the fullscreen code.

I read a bit about how the embed tag in HTML needs new fullscreen parameters, however this didn't seem to make any difference.

I know it's doable, just not how....