1 Reply Latest reply on Apr 2, 2007 4:27 AM by abdel.olakara

    how to send results to actionscript using java

    Kingwell
      Hi,
      I do RPC using HttpService.
      In my situation, I need to send results from Java code to Flex Action script. I have defined a Java Servlet receiving data from Flex application, then it processes with the data, finally the Servlet is supposed to send some feedbacks to the client(Flex).

      My question is that how can I define codes in doPost() method that the following function will get "result" from the Java side.

      public static function httpResult(event:ResultEvent):void
      {
      var result:Object = event.result;
      //Do something with the result.
      if (result.toString() == "success")
      {
      resultMessage.text = "Login Success";
      }
      resultMessage.text = "Invalid User";
      }