Fullscreen flash movie playback

Someone at a recent seminar asked me about how to set swf to play in fullscreen mode. The way to do this is simple. Flash movie playing inside a browser can be activated (user interaction) to play in full screen. The simple way to do this is create a button (say fullscreen_btn) that user can click to activate full screen. The following code is an example:

fullscreen_btn.addEventListener(MouseEvent.CLICK, doFullScreen);

function doFullScreen(e:MouseEvent):void
 stage.displayState = StageDisplayState.FULL_SCREEN;

Then publish the swf and html using the “Flash Only – All Full Screen” template which will put a parameter “allowFullScreen=true” for both <object> and <embed> tags.

Note that (1) the full screen mode must be user activated, (2) as soon as the flash movie loses focus it would revert to Normal mode and (3) text input is disabled in full screen mode except when it is an AIR app.

There is a devnet article that described it in greater depth:



~ by brianchau on February 18, 2009.

2 Responses to “Fullscreen flash movie playback”

  1. I love your site! 🙂

    Experiencing a slow PC recently? Fix it now!

  2. Ololo! I like what is written here!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: