Skip to main content
October 27, 2010
Question

how to write responder when fms call to client ?

  • October 27, 2010
  • 1 reply
  • 730 views

hi guys

      i stuck in a problem  .. i want to write responder in fms 3.5 here is my code but is not working

   clientCount = function(AppClient)

   {

      AppClient.call("fmsping",myResponderSuccess);         // fmsping is the function at client side which returns true boolean variable

     };

  function myResponderSuccess(result:Boolean):void {

             trace("FMS Call Successed : " + result);

          }

Thanks and regards

   Mohit

    This topic has been closed for replies.

    1 reply

    October 27, 2010

    Hi,

    This should work for you.

    resultHandler = function() {

         this.onResult = function(params) {

                   //code here

         }

         this.onStatus = function(info) {

              trace("failed: "+info.code);

         }

    };

    //some code

    clientObj.call("somemethod",new resultHandler());

    Inspiring
    October 27, 2010

    I think first you have to create an object on client side. After that you have to access the function in this format ojectname.function name . Try with this one.