Sharedobject.resyncdepth; Sharedobject.send - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

SharedObject.resyncDepth

Availability
Flash Communication Server MX.
Usage
SharedObject.resyncDepth
Description
Property; an integer that indicates when the deleted properties of a shared object should be
permanently deleted. You can use this property in a server-side script to resynchronize shared
objects and to control when shared objects are deleted. The default value is infinity.
If the current revision number of the shared object minus the revision number of the deleted
property is greater than the value of
if a client connecting to this shared object has a client revision that, when added to the value of
SharedObject.resyncDepth
current elements of the client shared object are deleted and the valid properties are sent to the
client and the client receives a "clear" message.
This method is useful when you add and delete many properties and you don't want to send too
many messages to the Flash client. Suppose a client is connected to a shared object that has 12
properties and then disconnects. After that client disconnects, other clients that are connected to
the shared object delete 20 properties and add 10 properties. When the client reconnects, it
could, for example, receive a delete message for the 10 properties it previously had and then a
change message on 2 properties. You could use
message, followed by a change message for 2 properties, which saves the client from receiving 10
delete messages.
Example
The following example resynchronizes the shared object
greater than 10:
mySo = SharedObject.get("foo");
mySo.resyncDepth = 10;

SharedObject.send

Availability
Flash Communication Server MX.
Usage
SharedObject.send(methodName, [p1, ..., pN])
Parameters
The name of a method on a client shared object instance. For example, if you
methodName
specify
doSomething
the
p1, ..., pN
Parameters of any ActionScript type, including references to other ActionScript
p1, ..., pN
objects. These parameters are passed to the specified
client.
SharedObject.resyncDepth
is less than the value of the current revision on the server, all the
, the client must invoke the
parameters.
, the property is deleted. Also,
SharedObject.resyncDepth
if the revision number difference is
mySO
SharedObject.doSomething
when it executes on the Flash
methodName
Server-Side Communication ActionScript
to send a "clear"
method, with all
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash communication server mx

Table of Contents