Description
Method; locks the shared object instance. This method gives the server-side script exclusive
access to the shared object; when the
are batched and one update message is sent, through the
all the clients that subscribe to this shared object. If you nest the
SharedObject.unlock()
method; otherwise, clients are blocked from accessing the shared object.
lock()
You cannot use the
SharedObject.lock()
Example
The following example locks the
inserted, and then unlocks the object:
var myShared = SharedObject.get("foo");
myShared.lock();
// Insert code here that operates on the shared object.
myShared.unlock();
SharedObject.mark()
Availability
Flash Media Server 2.
Usage
mySO.mark(handlerName, p1, ..., pN)
Parameters
Calls the specified function property on the client-side SharedObject
handlerName
instance. For example, if the
SharedObject.onChange()
Do not use a built-in method name for a handler name. For example, the subscribing
stream will be closed if the handler name is
SharedObject.unlock()
methods, make sure there is an
method on proxied shared objects.
shared object, executes the code that is to be
myShared
parameter is
handlerName
method with all the
method is called, all changes
SharedObject.onSync
SharedObject.lock()
method for every
unlock()
, the client invokes the
onChange
parameters.
p1, ...,pN
.
close
handler, to
and
SharedObject class
129
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?