3 Replies Latest reply on Jan 5, 2011 9:57 AM by Gregory Lafrance

    WindowedApplication: panel size in photoshop?

    Joerg Stahlmann

      Hello,

      I'm having problems with a panel for photoshop.

      If I assign a minWidht and minHeight (for example 200, 300) to my WindowedApplication and import the swf into photoshop the size of my window is somehow downscaled.

       

      Here's an example image and a snipped of my code where I'm trying to get the window to the right size:

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                                  xmlns:s="library://ns.adobe.com/flex/spark" 
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  xmlns:local="*"
                                  creationComplete="init();"
                                  minWidth="200" minHeight="200"
                                  left="0" right="0" top="0" bottom="0" 
                                  title="Test">
      
      
           <fx:Script>
           <![CDATA[     
                private function init():void {
                     nativeWindow.height=200;
                     nativeWindow.width=200;
                     var p:Point = new Point(200, 200);
                     nativeWindow.minSize = p;
                }
              ]]>
           </fx:Script>
           .
           .
           .
      </s:WindowedApplication>     
      
      
      
      

      Bild 1.png

       

       

       

      Does anyone know why this is happening and how I can fix this?

      thx in advance!