You use Flex Builder to add, size, position, edit, or delete Flex components, as well as custom components defined in separate MXML and ActionScript files.
You add standard Flex containers and controls to your user interface in MXML Design mode. You drag and drop components from the Components view to the Design area of the MXML file and position them according to the layout rule of the container. You can also add custom components that you define in separate MXML and ActionScript files and save in the current project or in the source path of the current project.
An MXML file must be open in Design mode to use the Components view. The MXML file can be the main application file (a file with an Application container) or a custom MXML component file.
If the Components view is not open, select Window > Components.
The components are organized by categories in the view.
The Custom category lists all the custom components that you define in separate MXML and ActionScript files and save in the current project or in the source path of the current project. For example, if you create a component file called EmployeeView.mxml and save it in your project, the EmployeeView component appears in the Custom category. For more information, see Creating Custom MXML Components.
The component is positioned in the layout according to the layout rule of the parent container.
The default layout rule of an Application, Panel, or TitleWindow container can be overridden by specifying a layout="absolute" property. You can then drag and position the component anywhere in the container. If you create an application or a Panel or TitleWindow component file with Flex Builder, the layout="absolute" property is included by default.
You can use code hinting to add standard Flex containers and controls to your user interface. In Flex Builder, as in Eclipse, code hinting is called Content Assist.
The MXML file can be the main application file (a file with an Application container) or a custom MXML component file.
For example, to insert a VBox container inside an HBox parent container, place the insertion point after the opening <mx:HBox> tag:
<mx:HBox>
insertion point here
</mx:HBox>
As you enter the tag, a pop-up menu appears suggesting possible entries.
In addition to the standard Flex components, the pop-up menu lists the custom components you defined in separate MXML and ActionScript files and saved in the current project or in the source path of the current project. For more information, see Creating Custom MXML Components.
You can add Flash components (SWC files) to your user interface either visually or by writing code.
The library path specifies the location of one or more SWC files that the application links to at compile time. The path is defined in the Flex compiler settings for the project. In new projects the libs folder is on the library path by default.
To set or learn the library path, select the project in the Flex Navigator view and then select Project > Properties. In the Properties dialog box, select the Flex Build Path category, and then click the Library Path tab. For more information, see Building projects manually.
The library path can also be defined in the flex-config.xml configuration file in Adobe LiveCycle Data Services ES.