Note :
During the full screen mode most of the keyboard controls are disabled. Only the keys for exiting the mode will work. So you can't keyin the text during the fullscreen mode. The mouse events are allowed in this mode.
To create the flash/flex applications to support full screen do the following
1. Download and install the latest version of flash player
2. Download the sample files which is zipped. The archive contains two important files playerglobal.swc and a playerglobal.abc
3. Flash 9 :
Copy playerglobal.abc from the ZIP file and replace the older version in your Flash installation here:
Flash 9 Public Alpha/en/Configuration/ActionScript 3.0/playerglobal.abc
Flex 2.0: Copy playerglobal.swc from the ZIP file and replace the older version in your Flex SDK
Flex Builder 2/Flex SDK 2/frameworks/libs/playerglobal.swc
4. Use the following As2.0 and AS3.0 in your application on any mouse event. This ActionScript that initiates full-screen mode can be called only in response to a mouse click or keypress. If it is called in other situations, it will be ignored (in ActionScript 2.0) or throw an exception (in ActionScript 3.0).
Flash 9:
Stage["displayState"] = "fullScreen"; //fullscreen mode
Stage["displayState"] = "normal"; //normal mode
import flash.display.Stage;
import flash.display.StageDisplayState;
import flash.display.InteractiveObject.*;
//Go to Full screen mode
private function goFullScreen():void
{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
//return back to normal mode
private function backToNormal():void
{
stage.displayState = StageDisplayState.NORMAL;
}
5. And finally to make the full screen mode work,you need to add a
new parameter to theOBJECTandEMBEDtags in your HTML.
In param tag: name="allowFullScreen" value="true"
In embed tag: allowFullScreen="true"
To get more information about the flash player full screen
read the article
1 comment:
Dude, thanks for making it so simple. I wish every other tutorials out there would explain it like you did.
Post a Comment