full screen and exit button in flash projectors

I was trying to put a “return to non-full-screen mode” button in a flash projector. I found out the following:

1. In full screen mode, the top-left corner of the screen is not the same as the top-left corner of the flash movie Stage.

2. Without setting “Stage.align”, the stage will be centered (both horizontally and vertically) in full screen mode.

Here is the code (where I put the “exit-full-screen-button” on the top-right corner of the screen):

var exitFull_mc:MovieClip;
var movieWidth:Number = 900;
var movieHeight:Number = 570;
var margin_right:Number = 12;
var margin_top:Number = 3;

exitFull_mc.onPress = function(){
fscommand(“fullscreen”, “false”);

function stickExitFullMc(Void):Void{
exitFull_mc._x = (Stage.width – movieWidth)/2+movieWidth – exitFull_mc._width – margin_right;
exitFull_mc._y = exitFull_mc._height – margin_top – (Stage.height – movieHeight)/2;

function onResize(){


Here is how to prompt the user with “Press Esc to exit full screen mode”:


import com.mosesSupposes.fuse.*;

Stage.scaleMode = “noScale”;

fscommand(“fullscreen”, “true”);

ZigoEngine.register(shortcuts, Fuse);

var exitP_mc:MovieClip;
var _l1:MovieClip = this;
var f:Fuse = new Fuse({
start_y: 300,
start_alpha: 0,
duration: 2
delay: 2,
alpha: 0,
y: 300,
duration: 1.2

f.target = exitP_mc;


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

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


Connecting to %s

%d bloggers like this: