views:

2

answers:

0

Hi, I have a big problem and I don't know what else to do to solve it, I know that I can call netconnection methods from FMS like

    //FMS code 
    application.onConnect = function(client){ 
      // Accept the client before you define a function. 
      this.acceptConnection(client); 
      // Alternately, you could define this method on Client.prototype. 
      client.sendMsg = function(msg){
        trace("sendMsg called on server"); 
        return msg;
      };
    };

//client code
var ro:Object = new Object();  
ro.onResult = function(arg){
    trace(arg);
};
nc.call("sendMsg", ro, "Hello, World");

but how can I call netconnecion properties from FMS? like

//client side 
//suppose I have an object in the nc class like
nc.myobj = new Object();
//then I implement a function inside that object like
nc.myobj.myfunction = function(){
trace("hi");
}

how I can call that property function??? I'm using AS2, can I use some sort of slash notation in the server side because the server side use AS1 something like myobj/myfunction??

anyhelp please thanks!!!!!!!