8 Replies Latest reply on Jun 19, 2009 10:51 AM by jeconthe

    Flash air desktop application

    jeconthe

      Hello there,

       

      We developed an application.

       

      The window of our application cannot be maximize after it is install on our desktop.

       

      How could we get this fonctionnality?

       

      Please help.

       

      Many thanks

        • 1. Re: Flash air desktop application
          Jeff Swartz Level 3

          Ensure that the maximizable property of the initialWindow property in the application descriptor file is not set to false. (The default value is true.)

          1 person found this helpful
          • 2. Re: Flash air desktop application
            jeconthe Level 1

            Hello there,

             

            We do not want that our window application stretch but we want that the rest of the screen become black so the rest of the desktop would be hidden.

             

            How could we do this?

             

            Many thanks

            • 3. Re: Flash air desktop application
              Jeff Swartz Level 3

              Adobe AIR does not support this. You could create a second NativeWindow (with no system chrome), put it in back of the main window, scale it, etc. But it sounds like you may not want two windows.

              • 4. Re: Flash air desktop application
                jeconthe Level 1

                Hello Jeff,

                 

                Many thanks for your help.

                 

                I guess we will have to accept that our application cannot have have a black section to cover the rest of the window.

                 

                Too bad that air does not allow this fonctionnality.

                 

                Best regards

                • 5. Re: Flash air desktop application
                  Joe ... Ward Level 4

                  You can do this.

                   

                  Here's a basic example:

                  <?xml version="1.0" encoding="utf-8"?>
                  <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()">
                      <mx:Script>
                          <![CDATA[
                              private function init():void
                              {
                                  this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
                                  this.addEventListener( MouseEvent.CLICK, onClick );
                                  this.stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen );
                              }
                             
                              private function onFullscreen( event:FullScreenEvent ):void
                              {
                                  if(!event.fullScreen) this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
                              }
                                         
                              private function onClick( event:MouseEvent ):void
                              {
                                  this.close();
                              }
                          ]]>
                      </mx:Script>
                  </mx:WindowedApplication>

                   

                  If you are using Flash, then you need to set the stage scaleMode to "noScale" to prevent your content from getting resized when you change the size of the window. You might also need to set the stage align property and set the x and y properties of your content.

                  • 6. Re: Flash air desktop application
                    jeconthe Level 1

                    Hello Joe,

                     

                    Firt I want to say thank you for your help.

                     

                    Are you saying that it is possible to get this fonctionality (maximise

                    without stretching) when using flash air desktop application?

                     

                    If yes, Do you recommend the utilization of aire for the distribution of our

                    application?

                     

                    Our application is made for teachers and student in colleges and university,

                    so we want every steps easy and smooth for them.

                     

                    Also could you recommend us a way for limiting the illegal distribution?

                     

                    Cheers,

                     

                    Rachel

                    • 7. Re: Flash air desktop application
                      Joe ... Ward Level 4

                      Are you saying that it is possible to get this fonctionality (maximise

                      without stretching) when using flash air desktop application?

                       

                      Yes, you can maximize a window without distorting the contents. When using Flash, the stage scale mode defaults to one of the scaling modes. For your app it sounds like you should set the scale mode to the "noScale" option.

                       


                       

                      If yes, Do you recommend the utilization of aire for the distribution of our

                      application?

                       


                      I don't know enough about your application to make any kind of recommendation, and anyway my opinion might be biased since I am an Adobe employee.

                       

                       

                       

                      Also could you recommend us a way for limiting the illegal distribution?

                       


                      I don't think there is a fool proof way to do it (in general DRM is a race between the publishers and the hackers). Adobe doean't provide any tools for this. Presumably, there are 3rd party tools for application DRM that you could use (but that's outside my area of expertise).

                       

                      For a homegrown approach to the problem, you could require that users of your application create a user account on your web site and download a license file in order to run the application.  This isn't perfect, because someone could hack your application to remove the check for the license, but it would prevent casual copying.

                      • 8. Re: Flash air desktop application
                        jeconthe Level 1

                        Hello Joe,

                         

                        Many thanks for your honest answer.

                         

                        Best regards

                         

                        Rachel