in webservice specify the result format as e4x ok..
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
>
<mx:Button x="258" y="169" label="Button" click="addData()"/>
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
import mx.controls.Alert;
var testsrc:XML =
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<ColorsDataSet>
<ColorTable diffgr:id="ColorTable1" msdata:rowOrder="0">
<colors>
Aquamarine
</colors>
</ColorTable>
<ColorTable diffgr:id="ColorTable18" msdata:rowOrder="17">
<colors>
CadetBlue3
</colors>
</ColorTable>
<ColorTable diffgr:id="ColorTable19" msdata:rowOrder="18">
<colors>
CadetBlue4
</colors>
</ColorTable>
<ColorTable diffgr:id="ColorTable20" msdata:rowOrder="19">
<colors>
Chartreuse
</colors>
</ColorTable>
<ColorTable diffgr:id="ColorTable21" msdata:rowOrder="20">
<colors>
Chartreuse1
</colors>
</ColorTable>
<ColorTable diffgr:id="ColorTable29" msdata:rowOrder="28">
<colors>
Cyan3
</colors>
</ColorTable>
<ColorTable diffgr:id="ColorTable30" msdata:rowOrder="29">
<colors>
Cyan4
</colors>
</ColorTable>
</ColorsDataSet>
</diffgr:diffgram> ;
public function addData():void
{
//Alert.show(testsrc..colors);
combo.dataProvider = testsrc..colors;
}
]]>
</mx:Script>
<mx:ComboBox id="combo" x="246" y="667"></mx:ComboBox>
</mx:Application>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---