1 Reply Latest reply on Jun 13, 2008 9:45 AM by Gregory Lafrance

    resize viewStack

    realtime158 Level 1
      I was wondering with view stack how can I change the size so that its 1024x768 on the screen.
        • 1. Re: resize viewStack
          Gregory Lafrance Level 6
          <?xml version="1.0"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
          <mx:VBox backgroundColor="red">
          <mx:LinkBar dataProvider="{myViewStack}" borderStyle="solid"/>
          <mx:ViewStack id="myViewStack" width="680" height="480"
          backgroundColor="blue">
          <mx:Canvas id="search" label="Search">
          <mx:Label text="Search Screen"/>
          </mx:Canvas>
          <mx:Canvas id="custInfo" label="Customer Info">
          <mx:Label text="Customer Info"/>
          </mx:Canvas>
          <mx:Canvas id="accountInfo" label="Account Info">
          <mx:Label text="Account Info"/>
          </mx:Canvas>
          </mx:ViewStack>
          </mx:VBox>
          <mx:Button label="Change Size"
          click="myViewStack.width=1024;myViewStack.height=768;"/>
          </mx:Application>