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.