2 Replies Latest reply on Sep 15, 2006 5:38 AM by ljonny18

    comboBox + get value

    ljonny18 Level 1
      Hi all,

      I am using a comboBox and calling an mx:Script function using the "Change" property within the comboBox......
      if I populate the comboBox manually, e.g:

      <mx:ComboBox id="test_cb" change="getCbVal()">
      <mx:dataProvider>
      <mx:Array>
      <mx:String>a</mx:String>
      <mx:String>b</mx:String>
      <mx:String>c</mx:String>
      </mx:Array>
      </mx:dataProvider>
      </mx:ComboBox>

      I can get the value of the comboBox and thus perform some sort of action within the ms:Script function, e.g:

      if(test_cb.value == "b")
      {
      test_cb.enabled=false
      }
      etc..........................

      but when I try to populate the comboBox using another (dynamic) method such as a web-service - the function is called but the values of the comboBox cannot be recognised.......
      is there another method of doing this using a web-service population (replacement of .value????)

      any suggestions?

      Thanks,
      Jon.