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 6772479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:33:16+00:00 2026-05-26T15:33:16+00:00

I have a class ExtendedComboBox.as In package com.ui.comboBox So I import it. import com.ui.comboBox.ExtendedComboBox;

  • 0

I have a class ExtendedComboBox.as

In package com.ui.comboBox

So I import it. import com.ui.comboBox.ExtendedComboBox;

When I do <comboBox:ExtendedComboBox /> It can not locate the class.

When I use the auto generated code <comboBox1:ExtendedComboBox /> it works fine

My question is why is the auto generated code adding the 1?
Where is the 1 coming from?

  • 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-26T15:33:17+00:00Added an answer on May 26, 2026 at 3:33 pm

    It’s not the import in the script block, but the namespace defined in the parent component (eg, Application) which defines the namespace on the tag and enables the class to be located.

    The namespace you actually use (eg, “comboBox” or “comboBox1“) is fairly arbitrary:

    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comboBox2012="com.ui.comboBox.*">
      ...
      <comboBox2012:ExtendedComboBox />
    

    So, there really is no “incorrect” namespace.

    As to why the “1” was appended by the IDE, I can only guess. Perhaps Flex Builder 3 starts counting from 1 to keep custom namespaces unique, or somehow you already had “comboBox” as a namespace. I can’t quite verify, since I only have FB4, which from my tests auto-generates “comboBox2” if “comboBox” is already reserved.

    There is another question on how to direct the auto-generated namespace to adhere to your definition, which might be worth checking out: How can I make FlashBuilder use a custom namespace prefix


    Update: Behavior Recreated in Flash Builder 4

    I have run into an instance where Flash Builder 4 will increment the namespace in exactly the way it is indicated in the question. Namely, I have the following package structure in one of my projects:

    --com
        |
        |--mydomain
        |    |
        |    |--behaviors
        |    |--components
        |    |--skins
        |    |--utils
        |
        |--anotherdomain
             |
             |--components
    

    Whenever I use components from com.mydomain.components, the IDE uses the auto-generated namespace “components“. Subsequently, if I then use a component from the com.anotherdomain.components package, the IDE auto-generates the (incremented) namespace “components1“.

    So perhaps you may have had a similar setup when you experienced this identical behavior. In the end it seems like a well-designed fallback behavior to prevent namespace collisions.

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

Sidebar

Related Questions

I have class in server side and I want use method of this class
I have class GUI so I can create object like this: GUI g1 =
I have class MyForm which inherited from QMainWindow . Here's my code: std::auto_ptr<MyForm> pForm(new
I have a WTL application that uses an extended combobox control (the Win32 class
I have class method that returns a list of employees that I can iterate
I have class that I believe should not be a singleton or static class.
I have class (MyCustomWebView) that extend webview can i do something like this ?
I have Class and Student objects. Both have collection of another as property. Which
I have class LegacyClass which inherits OldBaseClass. I'm considering a change to introduce a
I have class that extend FragmentActivity in it I add fragment to layout as

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.