136
Server-Side ActionScript Language Reference
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 two properties. You could use
SharedObject.resyncDepth
to send a “clear” message, followed by a change message for two
properties, which saves the client from receiving 10 delete messages.
Example
The following example resynchronizes the shared object
mySO
if the revision number
difference is greater than 10:
mySo = SharedObject.get("foo");
mySo.resyncDepth = 10;
SharedObject.send()
Availability
Flash Communication Server MX 1.0.
Usage
mySO
.send(
methodName
, [
p1, ..., pN
])
Parameters
methodName
The name of a method on a client shared object instance. For example, if you
specify
doSomething
, the client must invoke the
SharedObject.doSomething
method, with
all the
p1, ..., pN
parameters.
p1, ..., pN
Parameters of any ActionScript type, including references to other
ActionScript objects. These parameters are passed to the specified
methodName
when it
executes on the Flash client.
Returns
A Boolean value of
true
if the message was sent to the client;
false
otherwise.
Description
Method; executes a method in a client-side script. You can use
SharedObject.send()
to
asynchronously execute a method on all the Flash clients subscribing to a shared object. The
server does not receive any notification from the client on the success, failure, or return value
in response to this message.
Содержание FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT...
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...