
Create the custom component file 177
The layout should look similar to the following:
5. Save the file.
Now you can build and test your custom component.
Create the custom component file
The first step to building a custom MXML component is to create the file. Most custom
components are derived from existing components. For your new login box component, you
decide to extend the MXML Panel component because it provides a basic user interface for a
login form.
Before you begin, create a subfolder to store the custom component files for your application.
1. In the Navigator view, right-click (Control-click on Macintosh) the Lessons parent folder
and select New > Folder from the context menu.
The New Folder dialog box appears.
2. In the Folder Name text box, enter myComponents and click Finish.
Flex Builder creates a new subfolder called myComponents.
Comentarios a estos manuales