0 Replies Latest reply on Oct 7, 2010 12:43 AM by Phuong Thanh

    image at left desktop not center when use fullcreen??

    Phuong Thanh

      hi. I'm building fullscreen button. and when i click to run fullscreen image it in left not center.

      background  image in application i make it by skinclass. it run normal and at  center desktop when run but when click fullsreen it not

      and fullscreen:

          private function init():void {
                      fullScreenState = stage.displayState;
                  }

       

                  private function btn_click(evt:MouseEvent):void {
                      if (btn.selected) {
                          fullScreenState = StageDisplayState.FULL_SCREEN;
                      } else     {
                          fullScreenState = StageDisplayState.NORMAL;
                      }
                     
                      try {
                          stage.displayState = fullScreenState;
                      } catch (any:*) {
                         
                      }
                  }

      and button:

      <s:ToggleButton id="btn"            
                              click="btn_click(event);"
                              width.trangchu="121" x.trangchu="401" y.trangchu="-27" height.trangchu="95" />

      Can u help me please?