
146
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
var so = SharedObject.get("foo", true);
var soLength = so.size();
SharedObject.unlock()
so.unlock()
Allows other clients to update the shared object. A call to this method also causes the server to commit all changes
made after the
SharedObject.lock() method is called and sends an update message to all clients.
You cannot call the SharedObject.unlock() method on proxied shared objects.
Availability
Flash Communication Server 1
Returns
An integer indicating the lock count: 0 or greater if successful; -1 otherwise. For proxied shared objects, this method
always returns -1.
Example
The following example unlocks a shared object:
var so = SharedObject.get("foo", true);
so.lock();
// Insert code to manipulate the shared object.
so.unlock();
See also
SharedObject.lock()
SharedObject.version
so.version
Read-only; the current version number of the shared object. Calls to the SharedObject.setProperty() method on
either the client or the server increment the value of the
version property.
Availability
Flash Communication Server 1
SHA256 class
The Server-Side ActionScript SHA256 class is a symmetric port of the Flex® SDK mx.util.SHA256 utility class. Use this
class to generate a digest, or signature, for binary data. A receiver of the data can compute its own digest and compare
that to the original digest value to ensure that the binary data has not been tampered with.
Method Description
SHA256.computeDigest() Uses the SHA-256 hash algorithm to compute the digest of a message.
Commenti su questo manuale