1 Reply Latest reply on Jan 8, 2011 2:07 AM by Shongrunden

    spark list would not populate with data

    aya Level 1

      hello everyone


      I have an xml file generated by php like so:


      <?xml version="1.0" encoding="UTF-8"?>
      <category id="NewsItems">
      <description>2.46 kb</description>
      <description>1.81 kb</description>


      i am using httpservice to get data:


      <s:HTTPService id="myFileListService" url="myURLhere/getFiles.php"
                      result="onGetMyList(event)" resultFormat="e4x"/>


      heres my function


      [Bindable] private var fileList:ArrayCollection;

      private function onGetMyList(event:ResultEvent):void{
      fileList = event.result.stories.category.file as ArrayCollection;}


      this is my list
      <s:Panel title="Stories">
              <s:List dataProvider="{fileList}" labelField="name" width="100%" height="100%"/>


      my problem is no errors occur but the list is not populated.

      But I can see(monitor) the data is returned by the service call properly.


      Any help in the right direction is appreciated.