Stephen's dev blog

Posts Tagged ‘e4x

Flex Processing XML response from HTTPService

Posted by: Stephen Gray on: 8 August, 2008

There are a number of tutorials on doing this around the web but I thought I’d write my own tailored tutorial on this topic.
I’m going to cover two scenarios;
Assigning XML results as a dataProvider:
This is by far the simplest of the two:
// The initialisation function
protected function init():void
{
    var serviceObj:HTTPService = new HTTPService();
    serviceObj.resultFormat = ‘e4x’;
    serviceObj.method = ‘GET’;
    serviceObj.useProxy [...]