Create both constraint columns and rows : constraintRows « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » constraintRowsScreenshots 
Create both constraint columns and rows
Create both constraint columns and rows
 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Canvas width="100%" height="100%">
        <mx:constraintColumns>
            <mx:ConstraintColumn id="col1" width="100" />
        </mx:constraintColumns>
        <mx:constraintRows>
            <mx:ConstraintRow id="row1" height="50" />
            <mx:ConstraintRow id="row2" height="50" />
        </mx:constraintRows>
        <mx:Button label="Button 1" left="col1:0" right="col1:0" top="row1:0" bottom="row1:0" />
        <mx:Button label="Button 2" left="col1:10" right="col1:10" top="row2:0" bottom="row2:0" />
    </mx:Canvas>
</mx:Application>

   
  
Related examples in the same category
1.Create a relative- and a fixed-size constraint rowCreate a relative- and a fixed-size constraint row
ww___w.___j_a___v___a_2___s_.__c__o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.