Figure 4-8 shows the result of Example 4-8.
Figure 4-8. A complex layout using various types of layout
mechanisms
The Panel Container
The Panel
container consists of a title bar, a caption, a status
message, a border, and a content area for its children. You can
use Panel containers to wrap self-contained application mod-
ules. You can control the display layout by using the layout
property set to vertical (the default), horizontal, or abso
lute. Each child must have its x and y positions set when using
an absolute layout, or they must use anchors for a constraint-
based layout.
Example 4-9 shows a sample Panel layout.
Example 4-9. Photo2.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
48 | Chapter 4: Flex Controls and Layout
Comments to this Manuals