Client.getbandwidthlimit - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

The
method can then be called from
sum
in the following example:
nc = new NetConnection();
nc.connect("rtmp://myServer/myApp");
nc.call("sum", new result.sum(), 20, 50);
function result.sum(){
this.onResult = function (retVal){
output += "sum is " + retVal;
};
this.onStatus = function(errorVal){
output += errorVal.code + " error occurred";
};
}
The
method can also be called on the server side, as shown here:
sum
newClient.sum();
The following example creates two functions that you can call from either a client-side or server-
side script:
application.onConnect = function(clientObj) {
// Add a callable function called "foo"; foo returns the number 8
clientObj.foo = function() {return 8;};
// Add a remote function that is not defined in the onConnect call
clientObj.bar = application.barFunction;
};
// The bar function adds the two values it is given
application.barFunction = function(v1,v2) {
return (v1 + v2);
};
You can call either of the two functions that were defined in the previous examples (
by using the following code in a client-side script:
c = new NetConnection();
c.call("foo");
c.call("bar", null, 1, 1);
You can call either of the two functions that were defined in the previous examples (
by using the following code in a server-side script:
c = new NetConnection();
c.onStatus = function(info) {
if(info.code == "NetConnection.Connect.Success") {
c.call("foo");
c.call("bar", null, 2, 2);
}
};

Client.getBandwidthLimit

Availability
Flash Communication Server MX.
Usage
Client.getBandwidthLimit(iDirection)
Parameters
An integer specifying the connection direction: 0 indicates a client-to-server
iDirection
direction, 1 indicates a server-to-client direction.
NetConnection.call
Server-Side Communication ActionScript
on the Flash client side, as shown
foo
foo
and
)
bar
and
)
bar
29

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents