1 Reply Latest reply on Aug 7, 2006 5:36 PM by ntsiii

    Get value XML

      PHP file:
      $Return .="<news><other><pagecount>$MaxPage</pagecount></other></news>";

      private function initApp():void {
      var xmlData:XML = new XML(newsRequest.lastResult.news.other);
      var PageCount:String = xmlData.pagecount.toString();
      <mx:HTTPService id="newsRequest" url=" http://localhost/flex/news.php" useProxy="false" method="POST">

      But PageCount empty
        • 1. Re: Get value XML
          ntsiii Level 3
          Data service calls are asynchronous. You CANNOT access the result in the same function you issue the send.

          You must use a result handler, or bind. I advise the result hanlder, as it is easier to debug.

          The link to the article I wanted to include is down. Post back if you want more info.