How to Fullscreen Flash File in Browser

Since the Flash Player 9,0,28,0 update, flash applets can go to true full-screen. There are no fancy javascript hacks needed either. Users can toggle between normal size and fullscreen with a simple click, which can toggle Stage[“displayState”] from “normal” to “fullScreen”. The param allow FullScreen must be set to true in the applet html.

The first thing to do is create a button and add the following code to it:

The code for the function toggleFullScreen and a resize listener are placed on the main stage.

Example XHTML used for this applet:

The balls were added in to show that the stage extends to the borders of the screen, even when resized.

View Demo

  1. hire website designer Reply
  2. Tutorial Lounge Reply
  3. jim Reply

Leave a Reply

Your email address will not be published. Required fields are marked *