Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > Client class > Client.__resolve | |||
Flash Communication Server MX 1.0.
Client.__resolve = function(propName){}
propName The name of an undefined property.
The value of the undefined property, which is specified by the propName parameter.
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.
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);
}