1 Reply Latest reply on Oct 8, 2008 9:29 PM by ice9_us

    combo box question

    ice9_us Level 1
      I have a file.. in it has a status..
      pending -- resolved -- assigned -- new

      I have those in an array..
      when i get the xml and check
      [Bindable]
      public var choice:int;
      if ( line == new ) {
      choice=1;
      } else if ( line == pending ) {
      choice=2;
      } else if ( line == .....

      then i have an array setup to match those numbers to my items...
      <mx:Array id="pickme" >
      <status>new</status>.....

      <mx:ComboBox width="92" height="20" x="486" y="9" dataProvider="{pickme}" selectedIndex="{choice}" ></mx:ComboBox>

      when i run trace..
      my choice shows the correct # for the start of my combo box.. but i get the last entry of that combo box, and not the pick that should be shown according to selectedIndex... anyone have an idea why?