1 Reply Latest reply on Aug 2, 2006 8:41 AM by blackshirt

    Flex Flash Remoting

      Do we need FDS to do basic Flash Remoting? If not can someone please show me an example of how they duplicated Flash Remoting in Flex.

        • 1. Flex Flash Remoting
          blackshirt Level 1
          I found this out myself. Here is the code.

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" initialize="flashorbtest()">

          import flash.net.NetConnection;
          import flash.net.Responder;
          private function flashorbtest():void
          out.text += "testing..\n";
          var myConn:NetConnection = new NetConnection();
          myConn.connect(" http://server:8105/gateway");
          var myResult:Responder = new Responder(returnHelloWorld,bummer);

          myConn.call("com.flex2.Flex2.getHelloWorld", myResult);

          public function returnHelloWorld(data:String):void
          out.text += "Result="+data +"\n";
          public function bummer(data:String):void
          out.text += "bummer="+data+"\n";

          <mx:TextArea id="out" x="73" y="229" width="525"/>