3 Replies Latest reply on Dec 17, 2012 2:01 AM by Gaius Coffey

    Setting flash player launch in second monitor and maximized

    cksachdev Level 1

      I am using a dual monitor setup in development and using Windows 7. In Flash Builder, I have disabled html-template wrapper and my application launches in Flash Player. I want to set the launch location of Flash Player to my second monitor and it should be always in Maximized state.

      Currently the problem is Flash Player launches at variable x,y co-ordinates and it is not in maximized state. Please help me to set it in Flash Builder or Flash Player, so that I don't have to waste my time in maximizing to see the screen and moving it to another monitor with different resolution.

       

       

      Thx

        • 1. Re: Setting flash player launch in second monitor and maximized
          Gaius Coffey Level 2

          Not sure whether it's possible using just Flash player. For AIR desktop projects, however, you can interrogate screens and do something like this:

          [code]

          protected function setupScreenDisplay():void {

                                                  var testOnSecondScreen:Boolean = true;

                                                  var a:Array = Screen.screens;

                                                  var s:Screen = testOnSecondScreen ? Screen.screens[Screen.screens.length-1] : Screen.mainScreen;

                                                  var r:Rectangle = s.visibleBounds;

                                                  nativeWindow.x = r.x;

                                                  nativeWindow.y = r.y;

                                                  nativeWindow.maximize();

          }

          [/code]

          • 2. Re: Setting flash player launch in second monitor and maximized
            cksachdev Level 1

            Thanks for your reply, I am not looking for Adobe AIR solution. My app runs in a Flash Player projector and I want to keep it on my second monitor screen, every time I try to launch or debug, it used to take a random x,y position on my first monitor screen.

             

            Any solution to fix this ??

            • 3. Re: Setting flash player launch in second monitor and maximized
              Gaius Coffey Level 2

              I googled, and see you've asked around on this one! Best I could locate, that you've probably already seen, is this: http://www.flashdevelop.org/community/viewtopic.php?f=7&t=6658

               

              The core issue is that that functionality isn't strictly speaking available... I don't know whether there is an OS way to set preferences for opening location (I know IE opens windows in a place that has some reference to previous opening, for example) but I suspect you need to get hardcore which may be more effort than you want for this...

               

              G