If the namespace contains several components that you want to insert in the file or if you want
to insert several instances of the same custom component in the file, you can specify the
namespace once in the Application tag and omit it from each component tag, as follows:
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns:xyz="assets.components.controls.*">
<xyz:myComboBox />
<xyz:myButton />
</mx:Application>
Flash components (SWCs)
specified by the component's class package. For example, suppose you want to insert a Flash
component called foo.swc that belongs to the my.comps.foo class. The namespace is as follows:
xmlns:xyz="my.comps.*"
For more information, see "About SWC files" in Developing Flex Applications Help.
Related topics
•
"Defining component namespaces" in Developing Flex Applications Help
Creating MXML component files
You can use Flex Builder to create MXML component files.
This section covers the following topics:
•
"Creating an MXML component file" on page 122
•
"Creating and immediately using a component" on page 123
•
"Creating a component from an existing component" on page 124
•
"Including the component's properties in code hints" on page 124
Related topics
•
"Inserting controls and containers in an MXML file" on page 117
If you want to insert a Flash component, the namespace is
Creating MXML component files
121
Need help?
Do you have a question about the FLEX BUILDER-USING FLEX BUILDER and is the answer not in the manual?