MACROMEDIA FLEX-GETTING STARTED WITH FLEX User Manual Page 64

  • Download
  • Add to my manuals
  • Print
  • Page
    / 148
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 63
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
Page view 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 147 148

Comments to this Manuals

No comments