
178 Create a Custom Component
3. With the myComponents folder still selected in the Navigator view, select File > New >
MXML Component.
The New MXML Component dialog box appears with the Lessons/myComponents
folder set as the default folder for new custom components.
4. In the File Name text box, enter LoginBox.
The filename also defines the component name.
5. In the Based On pop-up menu, select Panel.
You want to extend the Panel component.
6. In the Layout pop-up menu, make sure Absolute is selected (it should be the default).
7. Click Finish.
Flex Builder creates and saves the LoginBox.mxml file in the myComponents folder and
opens it in the MXML editor.
Comentarios a estos manuales