2 Replies Latest reply on Aug 17, 2007 8:42 AM by SymTsb

    fullscreen and noscale using AS3.0

    andy-man Level 1
      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);

      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;


        • 1. Re: fullscreen and noscale using AS3.0
          kglad Adobe Community Professional & MVP
          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.
          • 2. fullscreen and noscale using AS3.0
            SymTsb Level 2
            fscommand still exists in AS3. try this for your AS3 projector

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

            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