Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:58:00+00:00 2026-05-23T11:58:00+00:00

I have a component library. It has a manifest file that looks like this:

  • 0

I have a component library. It has a manifest file that looks like this:

<?xml version="1.0"?>
<componentPackage>
    <component id="AutoComplete" class="be.edge.components.AutoComplete" />
    <!-- more components left out for brevity -->
</componentPackage>

I compile the library through FlashBuilder with these compiler settings:

FlashBuilder library compiler namespace inputs

When I use the compiled library in other FlashBuilder projects everything works as expected. I get code completion and when I select a suggestion from the code completion a namespace attribute is automatically added to the component, like this:

<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:ns="library://ns.edge.be" >

    <ns:AutoComplete />

</s:Skin>

But: FlashBuilder automatically creates the prefix ‘ns’. I would like to customize this to ‘e’ for instance. How can I make FlashBuilder use this custom prefix by default?

I have two reasons for this:

  1. ‘ns’ doesn’t say anything: it just says A namespace has been used, not what namespace.
  2. when I use other libraries that also start with a url like ‘library://ns.’ FlashBuilder will probably start numbering the prefixes to resolve the conflict (ns, ns1, ns2, etc.), which would be even more confusing.

EDIT:

I also pass a config.xml to the compiler that has the following declarations relating to namespaces:

<compiler>
    <namespaces>
        <namespace>
            <uri>library://ns.edge.be</uri>
            <manifest>manifest.xml</manifest>
        </namespace>
    </namespaces>
</compiler>

<include-namespaces>
    <uri>library://ns.edge.be</uri>
</include-namespaces>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:58:00+00:00Added an answer on May 23, 2026 at 11:58 am

    This used to work:

    Create a file called design.xml in your /src folder:

    <?xml version="1.0" ?>
    <design>
        <namespaces>
            <namespace prefix="mangos" uri="http://com.mangofactory.sample/mxml/2010" />
        </namespaces>
    </design>
    

    Create a file called manifest.xml in your /src folder:

    <componentPackage>
            <component id="MyClass" class="com.mangofactory.framework.MyClassTag"/>
    </componentPackage>
    

    Configure your Namespace URL, etc in the build properties:
    enter image description here

    This is supposed to cause flash builder to prompt as follows:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   xmlns:mangos="http://com.mangofactory.sample/mxml/2010">
        <fx:Declarations>
            <mangos:MyClass />
        </fx:Declarations>
    </s:Application>
    

    (Note that the class appears as MyClass instead of MyClassTag, and the namespace appears as mangos)

    However, I just tried doing this, and although the class was renamed correctly, the namespace appeared up as ns. I know this used to work in FB3.x, maybe I’ve either forgotten a step, or FB4.5 has broken it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a winsock component made with vb.net in a class library that has
I have a Page in a Windows Phone class library. This page has an
I have created a Class Library (Core Processing Component) using C# in Visual Studio
I have: @Component class MyDecorator{ private Cache cache; /* some wrapped methods like get
I am creating C# application that uses OCX component. I have this component from
I have Core static library, a few Component static libraries that relays on the
So I have an application and a class library. The class library has UserControls/Test.xaml
I have a library that I would like to license and distribute. I know
I have a windows script file that doesn't work anymore. The script look like
I am documenting a library that has a Python component and a JavaScript component.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.