How can i get XML value content only into ComboBox
XML file:
<list><size>3</size>
<items>
<item xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="lookup">
<description>I would like to ask some question.</description>
<key>10705.01</key>
<value>Inquiry</value>
</item>
<item xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="lookup">
<description>I would like to file a complaint.</description>
<key>10706.01</key>
<value>Complaints</value>
</item>
<item xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="lookup">
<description>I have a suggestion I'd like to share.</description>
<key>10707.01</key>
<value>Suggestion</value>
</item>
</items>
</list>
My Flash AS2 Code:
xmlICC = new XML();
xmlICC.ignoreWhite = true;
xmlICC.onLoad = checkComplete;
xmlICC.addRequestHeader("Authorization","Basic "+auth);
xmlICC.sendAndLoad(''+hostName+''+inquiryName+'/category/list/',xmlICC);
function checkComplete(success){
if(success){
//need code to call only <value>Content</value> in XML into Combo box list
//comboBox Component
inqCategory.addItem(obj);
} else {
popUpMessage.gotoAndStop("popUp");
popUpMessage.messageTxt.text = "Error! Check Connection to Server!";
}
}
stop();