Skip to Content
Getting Started with Flex 3
book

Getting Started with Flex 3

by Jack D. Herrington, Emily Kim
June 2008
Intermediate to advanced
143 pages
2h 30m
English
O'Reilly Media, Inc.
Content preview from Getting Started with Flex 3

Chapter 4. Flex Controls and Layout

The first step in building a Flex application is to create the user interface. Flex not only has a rich set of controls. It also has a complete set of layout mechanisms that make it easy to build user interfaces that look good and can scale appropriately as the display area of the Flash application is resized.

This chapter covers both layout mechanisms and controls. We will start by covering the layout mechanisms, and then we will discuss the available controls.

The Application Container

At the root of a Flex application is a single container, called the Application container, which holds all other containers and components. The Application container lays out all its children vertically by default (when the layout property is not specifically defined). There are three possible values for the Application component’s layout property:

vertical

Lays out each child component vertically from the top of the application to the bottom in the specified order

horizontal

Lays out each child component horizontally from the left of the application to the right in the specified order

absolute

Does no automatic layout, and requires you to explicitly define the location of each child component

If the Application component’s layout property is absolute, each child component must have an x and y coordinate defined; otherwise, the component will be displayed in the (0,0) position.

The Application container can also be formatted using any of the several style parameters that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ADOBE® FLEX® BUILDER™ 3: USING ADOBE FLEX BUILDER 3

ADOBE® FLEX® BUILDER™ 3: USING ADOBE FLEX BUILDER 3

Adobe Systems
Enterprise Development with Flex

Enterprise Development with Flex

Victor Rasputnis, Anatole Tartakovsky, Yakov Fain
Adobe Flex 3: Training from the Source

Adobe Flex 3: Training from the Source

Jeff Tapper, Michael Labriola, Matthew Boles, James Talbot

Publisher Resources

ISBN: 9780596520649Errata Page