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

    flex httpservice returning a custom message?

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

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

      if(result.errorCode > 0)
      Alert.show(result.errorText);

      }

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


      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