`

Saturday, September 25, 2010

Flash Fullscreen !

Here's a class that lets you go fullscreen quite simple.

Create a MovieClip in your document with two frames ('ON' and 'OFF 'mode') with
stop();
on the first frame. Remove it from the stage and in your library fill in 'FullScreenToggle' as the Class linkage.

Then instantiate this class from within your document class like this:

var fullscreen: FullScreen = new FullScreen(this.stage, 20, 400);
This works in the stand alone flash player or exe file. To make it work in the browsers too.

No comments: