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.
allowFullScreen=”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
{
try
{
switch (systemManager.stage.displayState)
{
case StageDisplayState.FULL_SCREEN:
/* If already in full screen mode, switch to normal mode. */
systemManager.stage.displayState = StageDisplayState.NORMAL;
break;
default:
/* If not in full screen mode, switch to full screen mode. */
systemManager.stage.displayState = StageDisplayState.FULL_SCREEN;
break;
}
}
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.
this is how the fullscreen apperars.
Posted by kumargandhi
Posted by kumargandhi
Posted by kumargandhi 