Flash Media Server Developer Documentation

Client.__resolve()

Client.__resolve = function(propName){}

Provides values for undefined properties. When an undefined property of a Client object is referenced by Server-Side ActionScript code, the Client object is checked for a _resolve() method. If the object has a _resolve() method, it 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.

Availability

Flash Communication Server 1

Parameters

propName A string indicating the name of an undefined property.

Returns

The value of the property specified by the propName parameter.

Example

The following example defines a function that is called whenever an undefined property is referenced:

Client.prototype.__resolve = function (name) {
    return "Hello, world!";
};
function onConnect(newClient){
// Prints "Hello World".
    trace (newClient.property1); 
}