Using the Application container

Flex defines an Application container that serves as the default container for any content that you add to your application. Flex creates this container from the <mx:Application> tag, which must be the first tag in an MXML application file. The Application object is the default scope for any ActionScript code in the file, and the <mx:Application> tag defines the initial size of the application.

Although you may find it convenient to use the Application container as the only container in your application, usually you explicitly define at least one more container before you add any controls to your application. Often, you use a Panel container as the first container after the <mx:Application> tag.

The Application container has the following default layout characteristics:

Property

Default value

Default size

The size of the browser window

Child alignment

Vertical column arrangement of children

Child horizontal alignment

Centered

Default padding

24 pixels for the top, bottom, left, and right properties

Subtopics

Sizing an Application container and its children
Overriding the default Application container styles
Viewing the application source code
Specifying options of the Application container

Flex 2.01

Take a survey


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/201/html/app_container_064_02.html