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

  • SEARCH
  • Home
  • 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 846639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:38:52+00:00 2026-05-15T06:38:52+00:00

I have wrote a function like , private function addSelectedFunc():void { /** * Adds

  • 0

I have wrote a function like ,

private function addSelectedFunc():void
{
    /**
    * Adds newly selected privilegs to assignedPrivileges
    */
    var obj_inst1:Array = obj_inst.selectedItems;

    for each(var obj_inst1:Object in obj_inst1)
       {
        objInstance1Array.addItem(obj_inste);
        }
}

<ov:HPList id="obj_inst" enabled="true" allowMultipleSelection="true" width="164" height="70" dataProvider="{obj_type.selectedItem}"  />    

<ov:HPList id="obj_inst1" enabled="true" allowMultipleSelection="true" width="164" height="70" />

getting error: 1151: A conflict exists with definition obj_inst1 in namespace internal.

  • 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-15T06:38:52+00:00Added an answer on May 15, 2026 at 6:38 am
    var obj_inst1:Array = obj_inst.selectedItems;
    

    This declares obj_inst1 as an Array

    for each(var obj_inst1:Object in obj_inst1)
    

    This tries to redeclare obj_inst1 as an Object – naturally the compiler is confused. Use a different identifier for the iterating variable.

    ActionScript Compiler wouldn’t complain if you try to redeclare a local variable with the same type as it was declared in the first place (though I can’t think of a valid reason to do this).

    Also, though it doesn’t contribute to this error, there is another obj_inst1 variable of type HPList in your code; it is not a good practice to name everything obj_inst et al. Consider using names that are more meaningful in your application context.

    //items is again a generic one, you should be able to do better
    var items:Array = obj_inst.selectedItems;
    for each(var item:Object in items)
    {
       objInstance1Array.addItem(item);
    }
    

    Which of the following sounds better?

    obj_inst1.function1(obj_inst2.var3);
    //or
    employees.addItem(dept.head);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple file read and write function. private void WriteToFile(String filename, String
I have some function like private static UserInfo FillUserInfoFromDataRow(DataRow dr) { UserInfo user =
I'd like to write a function that would have some optional code to be
guys, I wrote a function to test if two inputs (a and b) have
I have a C++ DLL that I wrote that has a single exposed function,
I have a stupid question. I got this variable: var type:int; and this function:
I wrote this - very simple - function, and then wondered does VB have
I have an array full of objects from the same class. I'd like to
I have to write a swap function for my bubble sort That's what I've
In my current work, I have to write a replace function. A replace function,

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.