The ArrayCollection is meant to work with more than 1 result. Your XML has only 1 record. If you add another(or more) records then your Datagrid will populate. However, you can make it work with 1 record by replacing the employeeData variable in the dataProvider with this:
width="100%" height="100%" />
Here you access the lastResult property of the HTTPService control. If you decide to add more records in your XML, then it will display all records in your Datagrid.
Hope that helps?
Thank you very much. So you meant, its not possible to display record in a datgrid using action script, if there is only one record. But i have more than onr record in each child na?
Thanks and regards,
What I meant was that if you're going to have more records in your XML file(e.g. more <employee> nodes), then the exercise that you're following will work. If you're only displaying 1 record, then the method I showed you above works best. The ArrayCollection has a problem with displaying just 1 record.
Take a look at this, it will help explain things better. http://bugs.adobe.com/jira/browse/SDK-21799
ok.Thank you Noelbaland. So you meant, minimum I should give 2 nodes to work according to my code?