0 Replies Latest reply on Oct 5, 2010 6:54 PM by Phuong Thanh

    why image background is not at center desktop when click fullsceen button

    Phuong Thanh Level 1

      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"            
                              width.trangchu="121" x.trangchu="401" y.trangchu="-27" height.trangchu="95" />

      Can u help me please?