<?xml version="1.0" encoding="utf-8"?>
<!---
Spark Constraint Layout Sample
(constraintRows)
-->
<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:constraintRows>
                <s:ConstraintRow id="row1" height="120" />
                <s:ConstraintRow id="row2" height="120" />
                <s:ConstraintRow id="row3" height="120" />
                <s:ConstraintRow id="row4" height="120" />
            </s:constraintRows>
        </s:ConstraintLayout>
    </s:layout>

    <s:Rect left="0" top="0" right="0" bottom="0">
        <s:fill>
            <s:SolidColor color="#000099" />
        </s:fill>
    </s:Rect>

    <s:Button width="50" height="50" top    = "row1 : 10" />
    <s:Button width="50" height="50" top    = "row2 : 20" />
    <s:Button width="50" height="50" top    = "row3 : 40" />
    <s:Button width="50" height="50" bottom = "row4 : 10" />

</s:Group>

</s:Application>