Layout Object type in Flash Builder or Flex 4

January 14th, 2011 by aabhaanjan

flex_cert3

Lets move to the Layout section.

The Basic Layout provides

1. Absolute positioning.

2. You need to record specific x,y position of each element of the layout.

<s:layout>

<s:BasicLayout/>

</s:layout>

In HorizontalLayout :

1. Children are arranged in a row.

2. Each child positioned to the right of previous one.

<s:layout>

<s:HorizontalLayout/>

</s:layout>

In VerticalLayout :

1. Children are arranged in a Column.

2. Each child positioned to the below of previous one.

<s:layout>

<s:VerticalLayout/>

</s:layout>

In TileLayout :

1. Children are arranged in row and Column necessary.

2. we can specify items positioning(horizontally or vertically )

before beginning of row and Column.

<s:layout>

<s:TileLayout/>

</s:layout>

Tags: , , , , , , , , , , , , , , , ,