<?xml version="1.0" encoding="utf-8"?> <!--- Spark ConstraintLayout Sample (constraintColumns) --> <s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009" xmlns:s = "library://ns.adobe.com/flex/spark" viewSourceURL="srcview/index.html"> <s:Group verticalCenter="0" horizontalCenter="0" width="640" height="480"> <s:layout> <s:ConstraintLayout> <s:constraintColumns> <s:ConstraintColumn id="col1" width="160" /> <s:ConstraintColumn id="col2" width="160" /> <s:ConstraintColumn id="col3" width="160" /> <s:ConstraintColumn id="col4" width="160" /> </s:constraintColumns> </s:ConstraintLayout> </s:layout> <s:Rect left="0" top="0" right="0" bottom="0"> <s:fill> <s:SolidColor color="#990000" /> </s:fill> </s:Rect> <s:Button width="50" height="50" left = "col1 : 10" /> <s:Button width="50" height="50" left = "col2 : 20" /> <s:Button width="50" height="50" left = "col3 : 40" /> <s:Button width="50" height="50" right = "col4 : 10" /> </s:Group> </s:Application>