0 Replies Latest reply on Dec 14, 2009 2:49 AM by lathoudero

    handle Flex 4 data services as Object or as XML?

    lathoudero Level 1



      I've been playing with dataservices as a source to populate several components & functions to generate CSV.

      My question is, what's the most efficient way to loop through the data in dataservices?


      Using object loop?:

      for each( item in dsrvc ){

         if( dsrvc[item] == value){

            //add item to component




      Using E4X:

      var newDP:dataprovider = dsrvc.customer.(lastname == value);

      component.dataProvider = newDP;