0 Replies Latest reply on Oct 6, 2010 1:49 AM by alex.80

    toggle fullscreen

    alex.80

      I have a problem with my page, when I open it in full screen with the (fullscreen button I've created) it moves up to the left. Does anyone know if I can add some x and y to this code?

       

      protected

       

       

       

       

       

      function fULL_NORMALSCREENBUTTON_clickHandler():void {

      toggleFullScreen();

      }

       

       

      private function toggleFullScreen():void {

       

      var newState:String;

       

      if (stage.displayState == StageDisplayState.FULL_SCREEN){

      newState = StageDisplayState.NORMAL;

      customcomponent541.currentState=

      'State1';

      customcomponent521.currentState=

      'State2';

      }

       

      else{

      newState = StageDisplayState.FULL_SCREEN;

      customcomponent521.currentState=

      'State3';

      customcomponent541.currentState=

      'State4';

      }

       

      try {

      stage.displayState = newState;

      }

      catch (any:*) {

       

      //ignore

      }

      }