MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 123

Table of Contents

Advertisement

If the Flex server is running on a remote computer, copy the component file to the application
6.
folder on the server.
Make sure the application folder structure on the server matches the folder structure on your
local computer, and that you copy the file to the same folder on the server. The folder structure
on the server determines the component's namespace. For more information, see
component namespaces in your code" on page
If you specified a remote folder when you defined your site in Flex Builder, you can use the Put
command (Site > Put) to upload the file to the server. The Put command recreates the local
folder structure on the server if it doesn't exist.
If you want to share the component across applications and teams, you can move the file to the
/WEB-INF/flex/user_classes folder. The /WEB-INF/flex/user_classes folder is created in your
site's root folder on the server the first time you compile any part of your application.
Synchronize Flex Builder with the server (Site > Update Flex Components) so that you can use
the Insert bar to insert the components in your files or the Tag inspector to edit their
properties. For more information, see
on page
125.
Creating and immediately using a component
You can create a custom component file and immediately insert it in an MXML file.
To create a new component file and immediately insert it in an MXML file:
Open the parent MXML file and place the insertion point where you want to insert the new
1.
component.
If you're using a newly created MXML file, make sure to save it before completing the next
step.
Select Insert > New Local Component.
2.
The Insert New Local Component dialog box appears.
Complete the dialog box and click OK.
3.
For more information, click the Help button on the dialog box.
Flex Builder inserts a tag at the insertion point that references the new custom component. At
the same time, it creates a new component file in the tabbed Document window.
Click the new component's file tab in the Document window and write the code for the
4.
component.
Save the component file.
5.
119.
"Synchronizing with custom components on the server"
Creating MXML component files
"Specifying
123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents