Ah sorry, i haven't read the text ;)
What if you try it like that:

var selectedIndex : int = 0;
for ( var i:int=0; i< stateCB.dataProvider.length; i++ ) {
      if( employeeStateId == stateCB.dataProvider[i].stateId ) {
         selectedIndex = employeeStateId ;
      }
}
stateCB.selectedIndex = selectedIndex;

Cheers,
Ralf.

--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35

Reply via email to