When I trace the code it seems like the label function is working
great it returns demo as a string yet i see nothing on the comobox.
What am I missing here?! sooo frustrated.

Another question, how do i get responses to my questions without
having to search through the all the groups messages?


XML1 = <ListDatasetsResponse>
 <Datasets>
  <Dataset id="001">
   <DisplayName>demo</DisplayName>
   <ReportData>
     <Overview />
     <Detail url="/detail1"/>
   </ReportData>
  </Dataset>
  <Dataset id="002">
   <DisplayName>demo2</DisplayName>
   <ReportData>
     <Overview />
     <Detail url="/detail2"/>
   </ReportData>
  </Dataset>
 </Datasets>
</ListDatasetsResponse>

after the http call comes back i initialize the dataprovider for my
combobox

dataSetColl = new XMLListCollection( XML1.Datasets.Dataset );

private function boxLabelFuntion(item):String
        {
        return XML(item).DisplayName.valueOf(); 
        }


<mx:ComboBox id="dataSetBox" dataProvider="{dataSetColl}"
labelFunction="boxLabelFuntion" change="dataSetBoxChange(event)" x="0"
y="-2" width="201" height="20"></mx:ComboBox>

Thanks,
Joe

Reply via email to