2 Replies Latest reply on May 21, 2008 1:08 AM by pfff...

    1.0.1 windows tranparent application

    pfff...
      Hi,

      i have problem with an application, she uses the Application tag with css and systemChrome : none and transparent : true for made the transparence.

      Since the adobe air 1.0.1 she's broked on windows, i can show her in process, but not on screen, on mac it 's ok no problem.

      You can try with this simple code
      SystemChrome are none and transparence true in your app file.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Style>
      WindowedApplication
      {
      background-color:"";
      background-image:"";
      padding: 0px;
      margin-top: 0;
      margin-right: 0;
      margin-bottom: 0;
      margin-left: 0;
      }
      </mx:Style>
      <mx:Canvas x="121" y="162" width="200" height="200" backgroundColor="#BE0E0E">
      </mx:Canvas>

      </mx:WindowedApplication>

      It's ok on windows and mac but you have a top bar.

      Try this now
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Style>
      Application
      {
      background-color:"";
      background-image:"";
      padding: 0px;
      margin-top: 0;
      margin-right: 0;
      margin-bottom: 0;
      margin-left: 0;
      }
      </mx:Style>
      <mx:Canvas x="121" y="162" width="200" height="200" backgroundColor="#BE0E0E">
      </mx:Canvas>

      </mx:Application>

      On Mac it's ok, on windows ( xp and vista ) this appli not appear on screen but run in process.

      i'm alone ?

      _Stef
        • 1. Re: 1.0.1 windows tranparent application
          For mx:WindowedApplication, try setting:

          showGripper="false"
          showStatusBar="false"
          showTitleBar="false"

          For mx:Application what we did is we added a creationComplete event and in the event handler:

          var win:NativeWindow = this.systemManager.stage.nativeWindow;
          var winMaxSize:Point = NativeWindow.systemMaxSize;
          win.width = 800;
          win.height = 600;
          var upperLeft:Point = new Point( (flash.system.Capabilities.screenResolutionX - win.width)/2, (flash.system.Capabilities.screenResolutionY - win.height)/2);
          win.bounds = new Rectangle(upperLeft.x, upperLeft.y, win.width, win.height);
          win.activate();

          You can see an example that is using mx:Application for AIR is at

          https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/app/org.eclipse.higgi ns.air/src/
          • 2. Re: 1.0.1 windows tranparent application
            pfff... Level 1
            Hi,

            thanks Jeesmon,

            for the Windowed solution they must add borderStyle="none", but it's a détail.

            _Stef