1 Reply Latest reply on May 15, 2007 12:04 PM by ashar2005

    Flex

    cliffy2009 Level 1
      Can anyone tell me how I can center a Canvas?
      Thank you
        • 1. Re: Flex
          ashar2005
          The canvas will get centered by using verticalAlign and horizontalAlign on its parent container.

          <mx:VBox verticalAlign="middle" horizontalAlign="center" width="100%" height="100%">

          <mx:Canvas>

          </VBox>