1 Reply Latest reply on Dec 19, 2008 10:35 AM by LittleMuscle

    putting a multidimensional array (from amfphp) into list dataprovider via actionscript not working

    LittleMuscle Level 1
      when i do it using mxml, the list populates but when i try doing it using actionscript 3 it is not working.

      //DOESNT WORK...
      var catList:List = new List;
      catList.dataProvider = multiDArr;
      catList.labelField = 'label';
      this.addChild(catList);

      //WORKS...
      var catList:List = new List;
      catList.dataProvider = singleDArr;
      catList.labelField = 'label';
      this.addChild(catList);

      //WORKS...
      <mx:List dataProvider="{multiDArr}" />

      // here is the array i am passing from amfphp and putting into multiDArr ...
      $arr[$i]['label'] = mysql_result($result,$i,'feature_name');
      $arr[$i]['_type'] = mysql_result($result,$i,'feature_type');
      $arr[$i]['_value'] = mysql_result($result,$i,'feature_value');