[Bindable]
public var groupsList:ArrayCollection;
public function groupListRH(event:ResultEvent):void
{
groupsList=event.result as ArrayCollection;
}
<mx:ComboBox dataProvider="{groupsList}"
labelField="groupName"
id="grpLst" width="150"
prompt="Select one group "
close="selectedItem=ComboBox(event.target).selectedIndex"
focusIn="init();" />
<mx:LinkButton label="New Group" id="creatgrp" click="addNewGroup();"/>
Here am getting array of groups(groupName,GroupID each row ) from a RemoteObject and displaying in a ComboBox. I am selecting the groups with selectedIndex as 0,1,2,3, but I want my groupIDs of correspoding groupnames,which am bringing to client side.
How can I get actual the groupId of the selected group?