User Guide
Client class 59
Client.referrer
Availability
Flash Communication Server MX 1.0.
Usage
clientObject.referrer
Description
Property (read-only); a string whose value is set to the URL of the SWF file or the server in
which this connection originated.
Example
The following example defines an onConnect callback function that sends a trace that
indicates the origin of the new client when that client connects to the application:
application.onConnect = function(newClient, name){
trace("New user connected to server from" + newClient.referrer);
};
Client.__resolve
Availability
Flash Communication Server MX 1.0.
Usage
Client.__resolve = function(propName){}
Parameters
propName The name of an undefined property.
Returns
The value of the undefined property, which is specified by the propName parameter.
Description
Event handler; provides values for undefined properties. When an undefined property of a
Client object is referenced by server-side ActionScript code, that object is checked for a
__resolve method. If the object has a __resolve method, the __resolve method is
invoked and passed the name of the undefined property. The return value of the
__resolve
method is the value of the undefined property. In this way,
__resolve can supply the values
for undefined properties and make it appear as if they are defined.