
50
Example
This example outputs foo to the NetConnection Debugger:
mySO = SharedObject.get("foo");
trace(mySO.name);
SharedObject.onStatus
Availability
Flash Communication Server MX.
Usage
SharedObject.onStatus = function(info) {
// insert code here
};
Parameters
info An information object. For more information, see the Appendix, “Client-Side
Information Objects,” in the Client-Side Communication ActionScript Dictionary.
Returns
Nothing.
Description
Event handler; reports errors, warnings, and status messages associated with either a local instance
of a shared object or a persistent shared object.
Example
The following example defines an onStatus event handler for the shared object soInstance:
soInstance = SharedObject.get("foo", true);
soInstance.onStatus = function(infoObj){
//Handle SO status messages
}
SharedObject.onSync
Availability
Flash Communication Server MX.
Usage
SharedObject.onSync = function(list){
return;
};
Parameters
list An array of objects that contain information about the properties of a shared object that
have changed since the last time the
onSync method was called. The notifications for proxied
shared objects are different than for shared objects that are owned by the local application
instance. The following tables list the descriptions for each type of shared object.
Komentáře k této Příručce