1 Reply Latest reply on Jun 10, 2008 3:37 PM by

    How to make sure the application will be in the center of the screen?

    Shelady
      Hi,
      Following is my code. I want my application <link bar and view stack> to be always in the middle of the screen no matter what the size of the screen and what is the dimentions. Any idea?

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:LinkBar dataProvider="viewstack1" horizontalCenter="17" top="10">
      </mx:LinkBar>
      <mx:ViewStack id="viewstack1" width="700" height="500" horizontalCenter="0" top="63" backgroundColor="#ffffff">
      <mx:Canvas label="View 1" width="95%" height="95%" backgroundColor="998988">


      </mx:Canvas>
      <mx:Canvas label="View 2" width="95%" height="95%" backgroundColor="#eeeee7">


      </mx:Canvas>
      <mx:Canvas label="View 3" width="95%" height="95%" backgroundColor="#fffff4">


      </mx:Canvas>
      </mx:ViewStack>

      </mx:Application>