1 Reply Latest reply on Jul 10, 2009 12:56 PM by UniQRO

    Issues with Fullscreen mode

    UniQRO

      Cs3->AS3

      I have a custom cursor movieClip that changes depending on which side of the screen its on in my Flash application. This works fine, and even when the Flash test window is resized. However when going to fullscreen mode, it stops working.

       

      This code is called every frame, so shouldnt the stageWidth/stageHeight adjust accordingly when going to fullScreen mode?

       

      if (stage.mouseX>(stage.stageWidth*.5)) {
                              Rnav.visible=true;
                              Lnav.visible=false;
                              Rnav.x=mouseX;
                              Rnav.y=mouseY;
                          } else {
                              Lnav.visible=true;

                              if (Object(root).currentFrame==3) {
                                  Lnav.alpha=.2;
                              } else {
                                  Lnav.alpha=.5;
                              }
                              Rnav.visible=false;
                              Lnav.x=mouseX;
                              Lnav.y=mouseY;
                          }

       

      What am I doing wrong? Thanks

        • 1. Re: Issues with Fullscreen mode
          UniQRO Level 1

          FYI- Turns out this is a shortcoming (hesitant to say bug) in Flash, and the stageHeight and stageWidth are not recalculated for some reason when going to fullscreen mode. There appears to be no known workaround. My solution was just to create an invisible movieclip on half the stage and add an event listener to it that would change the cursor. This movieclip sizes perfectly in fullscreen mode.