getting FullScreen mode in Flex APP.

First thing here is that u have do is to mention the allowFullScreen property in the embed tag of ur Html page(wrapper), and set it to true.


and same thing in AC_FL_RunContent() method as

“allowFullScreen”, “true”

Now there is some code in the flex app we have to do.

1.import the required packages.

import flash.display.StageDisplayState;
import mx.managers.SystemManager;

2.Define a control on which u want to call the fullscreen option , here iam using button control.

<mx:Button label=”Alter-fullscreen” click=”toggleFullScreen()” x=”361″ y=”348″/>

3.Now define the function that mentioned in the button control to go to full screen.

private function toggleFullScreen():void

switch (systemManager.stage.displayState)
case StageDisplayState.FULL_SCREEN:
/* If already in full screen mode, switch to normal mode. */
systemManager.stage.displayState = StageDisplayState.NORMAL;
/* If not in full screen mode, switch to full screen mode. */
systemManager.stage.displayState = StageDisplayState.FULL_SCREEN;

catch (err:SecurityError)
// ignore

Thats it, now when u click the button the window is set to fullscreen mode and viceversa.

Leave any comments for suggestions.fullscreen.jpeg this is how the fullscreen apperars.


3 Responses to getting FullScreen mode in Flex APP.

  1. Dau Huan says:

    Thank a lot. It help full.

  2. emepizevierb says:

    aylhyzedvrdfwkguwell, hi admin adn people nice forum indeed. how’s life? hope it’s introduce branch 😉

Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: