[code]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  width="408" height="358">

<mx:Script source="functions.as" />

	<mx:HTTPService id="info" result="ongo(event)" showBusyCursor="true" url="http://127.0.0.1/test.php" useProxy="false" />
	
<mx:DataGrid dataProvider="{myData}" editable="false" width="350" height="144" x="29" y="93" >
        <mx:columns>
           <mx:DataGridColumn width="100" headerText="ID" dataField="id"/>
           <mx:DataGridColumn width="100" headerText="Naam" dataField="name"/>
           <mx:DataGridColumn width="150" headerText="E-mail" dataField="email"/>
        </mx:columns>
    </mx:DataGrid>

    <mx:Button x="296" y="245" label="clear data" click="del()"/>
    <mx:Button x="193" y="245" click="info.send()" label="update data"/>
	
</mx:Application>
[/code]

[code]
// ActionScript file
//functions.as
		
		import mx.rpc.events.ResultEvent;
		
		[Bindable]
		public var myData:Object;
		
		public function ongo(evt:ResultEvent) :void{
			
			myData = evt.result.people.person;
			
			
		}
[/code]

[code]
//PHP output

<people>
	<person>
    	<id>1</id>
        <name>karel</name>
        <email>example@domain.ext</email>
    </person>
	<person>
    	<id>2</id>
        <name>klaas</name>
        <email>example@domain.ext</email>
    </person>
	<person>
    	<id>3</id>
        <name>piet</name>
        <email>example@domain.ext</email>
    </person>
	<person>
    	<id>4</id>
        <name>jaap</name>
        <email>example@domain.ext</email>
    </person>
	<person>
    	<id>5</id>
        <name>cees</name>
        <email>example@domain.ext</email>
    </person>
</people>
[/code]