MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 136

Server-side actionscript language reference
Table of Contents

Advertisement

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
to send a "clear" message, followed by a change message for two
SharedObject.resyncDepth
properties, which saves the client from receiving 10 delete messages.
Example
The following example resynchronizes the shared object
if the revision number
mySO
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
The name of a method on a client shared object instance. For example, if you
methodName
specify
, the client must invoke the
method, with
doSomething
SharedObject.doSomething
all the
parameters.
p1, ..., pN
Parameters of any ActionScript type, including references to other
p1, ..., pN
ActionScript objects. These parameters are passed to the specified
when it
methodName
executes on the Flash client.
Returns
A Boolean value of
if the message was sent to the client;
otherwise.
true
false
Description
Method; executes a method in a client-side script. You can use
to
SharedObject.send()
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.
136
Server-Side ActionScript Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents