132
Server-Side ActionScript Language Reference
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 1.0.
Usage
mySO
.onSync = function(
list
){}
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
handler 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.
Local shared objects
Code
Meaning
change
A property was changed by a subscriber.
delete
A property was deleted by a subscriber.
name
The name of a property that has changed or been deleted.
oldValue
The old value of a property. This is true for both
change
and
delete
messages; on
the client,
oldValue
is not set for
delete
.
NOT
E
Changing or deleting a property on the server side using the
SharedObject.setProperty()
method always succeeds, so there is no notification of these changes.
Содержание FLASH MEDIA SERVER 2
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...