0 Replies Latest reply on Feb 23, 2013 3:12 AM by raja_s_patil

    Scale AIR desktop Application




      I am converting a Flex Browser Application to AIR desktop application.

      Flex Application is using scalemode setting in preinitialize event to cope up screen resolution issues and is working fine there. I tried to use same technique in Air too but result is weired. The code is as follows



      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"



                             width="800" height="500" showStatusBar="false"

                             title="This Is My First AIR Application"

                             preinitialize="systemManager.stage.scaleMode = StageScaleMode.SHOW_ALL"





          protected function onResize(event:ResizeEvent):void


                this.width = 800;

                this.height = 500;   



      When I resize the Desktop window application scales properly but when a Alert.show("message", "title")

      window pops up scaling gets resetted. I googled a lot on scaling and came to know that AIR does not support

      scaleMode other than NO_SCALE quite well.


      I dont need any dynamic scaling with either mouse or keyboard but if its possible to give scale value at

      loading time via either a command line or reading local disk file or changing local installation application

      xml file is OK but after that application should follow that scale value as it doses in browser. My application

      is going to be confined to a non resizable native window and there will Alerts/popup with in that

      native window as it does in a browser.


      Hope somebody suggests me some work around to achieve this.


      Thanks and warm regards.


      Raja Patil