Hi,
Instead of using httpservice you have to use URLLOADER.
var loader:URLLoader=new URLLoader();
var path = _serverpath+".php";
loader.load(new URLRequest(path));
loader.addEventListener(Event.COMPLETE,onUrlLoadComplete);
public function onUrlLoadComplete(event:Event):void
{
//Alert.show(event.target.toString());
var xmlStr:String = event.target.data.toString();
var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
var obj:Object = decoder.decodeXML(xmlDoc);
userArr = new ArrayCollection();
for(var i:int = 0; i < obj.User.Username.length; i++ )
{
userArr.addItem(obj.User.Username[i]);
}
}
and give dataprovider for combo as userArr
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---