beaver
12-07-2007, 01:08 PM
In the following an example (in AS2) in which a server script (.asc) can invoke a method defined on the client side (client connected to FMS):
client-side in AS2:
nc = new NetConnection();
nc.connect(...)
...
nc.myMethod = function(arg) {
...
return ris;
}
server-side:
application.onConnect = function(client) {
...
resObj = new Object();
resObj.onResult = function(ris) {
...
}
client.call("myMethod", resObj, arg);
}
My question is: in which manner with Flex and AS3 can I define a client-side method visible to FMS?
Thanks
Beaver
client-side in AS2:
nc = new NetConnection();
nc.connect(...)
...
nc.myMethod = function(arg) {
...
return ris;
}
server-side:
application.onConnect = function(client) {
...
resObj = new Object();
resObj.onResult = function(ris) {
...
}
client.call("myMethod", resObj, arg);
}
My question is: in which manner with Flex and AS3 can I define a client-side method visible to FMS?
Thanks
Beaver