3 Replies Latest reply on May 29, 2011 3:14 AM by alexlkc28

    Try to get an array of object from phpservices.lastResult




      I developed a php service which retrevies data from a database in MySQL, the service is working properly because I setup the php service using "Data/Services" wizard. I tested the operation of the service and I can get the data using "Test operations" with the "Data/Services" tab.


      What I am trying to do is to use lastResult to get the data, but I always get null.


      Below is the code:




      function Setabcd():void


      getSecondMenuItemsResult2.token = bpmpServices.getSecondMenuItems(2);


      var bcd:Array = getSecondMenuItemsResult.lastResult;





      What I am trying to do in the above code is to get the lastResult result and save to an array object.


      Please advise.