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

Server-side actionscript language reference
Table of Contents

Advertisement

Returns
An integer indicating the number of properties.
Description
Method; returns the total number of valid properties in a shared object.
Example
The following example gets the number of properties of a shared object and assigns that
number to the variable
:
len
var myShared = SharedObject.get("foo", true);
var len = myShared.size();
SharedObject.unlock()
Availability
Flash Communication Server MX 1.0.
Usage
mySO.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. It 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
method is called and sends an
SharedObject.lock()
update message to all clients.
You cannot use the
method on proxied shared objects.
SharedObject.unlock
Example
The following example shows 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();
SharedObject class
139

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