MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 122

Table of Contents

Advertisement

Creating an MXML component file
You create an MXML component file in the same way that you create any new file.
To create a component file:
Select File > New to open the New document dialog box, and then double-click one of the
1.
component options in the Flex Development category.
Flex Builder gives you the option of creating components derived from common container
classes.
Name the component by selecting File > Save As and naming the file.
2.
The filename defines the component name. For example, if you name the file
LoginForm.mxml, the component is named LoginForm. The Flex server uses the spelling and
capitalization of the filename to generate a new class representing the component.
Save the file in the local root folder of your application or in any of its subfolders.
3.
Flex applications can't find components located outside of the application root folder. For
more information on the application root folder, see
folder" on page
Write the code for the component.
4.
For more information, see "Creating MXML components" in Developing Flex Applications
Help.
Save the component file.
5.
122
Chapter 5: Working with Components
11.
"Identifying a Flex application root

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents