Skip to main content
Inspiring
August 17, 2007
Question

fullscreen and noscale using AS3.0

  • August 17, 2007
  • 2 replies
  • 7681 views
I'm attempting to create a projector that will go fullscreen and without scaling using AS 3.0

In AS 2.0 I simply did this:

fscommand("allowscale", false);
fscommand('fullscreen",true);

Worked every time...

I've tried a few things, like the following:

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

stage.scaleMode = StageScaleMode.NO_BORDER;
stage.align = StageAlign.EXACT_FIT;

But it ignors the code.

I have had success with the following:

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

Suggestions???



This topic has been closed for replies.

2 replies

Inspiring
August 17, 2007
fscommand still exists in AS3. try this for your AS3 projector


import flash.system.fscommand;
fscommand("allowscale", false);
fscommand('fullscreen",true);


Edit: Thought I might post a link to the LiveDocs for fscommand since people on the forums keep getting confused about this pretty much undocumented function in AS3. I'm sure it is simply because the Flash team is intending to deprecate it completely but either way, it is still there and it's use is no different that it was in AS2. The only difference is that now you MUST import the flash.system package to use it.

AS3 Help - fscommand on LiveDocs
kglad
Community Expert
Community Expert
August 17, 2007
use use the displayState property of the stage class. and make sure you edit your html file per the instructions in the flash help files under Stage/displayState.