3 Replies Latest reply on Jun 2, 2008 4:15 PM by ntsiii

    flex httpservice returning a custom message?

      i have an httpservice and want to have the ability to have flex show the code i return if its only an error code

      protected function defaultResult(event:ResultEvent):void
      var result:Object = event.result;

      if(result.errorCode > 0)


      <mx:HTTPService id="stations_info_request" url="/managementconsole.php/stationsinfo/index" method="POST" showBusyCursor="true" result="defaultResult(event)" requestTimeout="30" >
      <mx:request xmlns="">

      you will notice im trying to only trigger the alert box on an errorcode Xml node being returned? trouble is it returns only a blank alert box?

      how can i have my custom error code show up in the alert box