• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Appendix: IV Appendixes: Quick Reference... > Invoking a Server Function from Macr...

Invoking a Server Function from Macromedia Flash

Listing E.14 will call the method sayHelloServer, which was created in the SSAS Client object when the client connected.

Listing E.14. Flash ActionScript for Invoking a Server Function

nc = new NetConnection();
nc.onStatus = function() {
     nc.call(“sayHelloServer”, new server_ret());
};
nc.connect(“rtmp://localhost/myApplication/myInstance”);

// handle the method results returned from the server.
server_ret = function () {
      this.onResult = function(value_ret) {
            trace(“Message From the Server: “+value_ret);
      };

      this.onStatus = function() {
            trace(“Method Failed”);
      };

};


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint