
Design the layout of the custom component 179
If you switch to Design mode, the component also appears in the Custom category of the
Components view:
If you save a custom component file in the current project or in the source path of the current
project, Flex Builder displays the component in the Components view so that you can rapidly
insert it in your applications.
Design the layout of the custom
component
The next step is to design the layout of the custom component. For your LoginBox
component, you want a layout that includes username and password text boxes, and a submit
button.
1. Make sure the LoginBox component is open in Design mode.
2. Select the Panel and set the following properties in the Flex Properties view:
■ Title: Member Login
■ Width: 275
■ Height: 150
3. Insert two Label controls in the panel and align them vertically.
4. Insert two TextInput controls to the right of the Label controls and align them vertically.
5. Select the first Label control and enter Username as the value of its text property.
NOTE
The Components view only lists visible custom components (components that inherit
from UIComponent). For more information, see the Adobe Flex 2 Language Reference.
Commenti su questo manuale