
56
Usage
mySharedObject.unlock()
Parameters
None.
Returns
An integer indicating the lock count: 0 or greater if successful, -1 otherwise. For proxied shared
objects, this method always returns -1.
Description
Method; unlocks a shared object instance. This causes the script to relinquish exclusive access to
the shared object and lets other clients update the instance. 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 use the
SharedObject.unlock method on proxied shared objects.
Example
This example illustrates how easy it is to unlock a shared object.
var myShared = SharedObject.get("foo", true);
myShared.lock();
// insert code to manipulate the shared object
myShared.unlock();
See also
SharedObject.lock
SharedObject.version
Availability
Flash Communication Server MX.
Usage
SharedObject.version
Description
Property (read-only); the current version number of the shared object. Changes made to the
shared object either by the Flash Player client or by the server-side script using the
SharedObject.setProperty method increment the value of the version property.
Stream (object)
The Stream object lets you handle each stream in a Flash Communication Server application. A
stream is a one-way connection between the Flash Player and the Flash Communication Server, or
between two servers. The Flash Communication Server automatically creates a Stream object with
a unique name when
NetStream.play or NetStream.publish are called in a client-side script.
You can also create a stream in server-side ActionScript by calling
Stream.get. A user can access
multiple streams at the same time, and there can be hundreds or thousands of Stream objects
active at the same time.
You can use the property and methods of the Stream object to shuffle streams in a playlist, pull
streams from other servers, and play and record streams.
Kommentare zu diesen Handbüchern