User Guide
120 Server-Side ActionScript Language Reference
This property is true by default. This can be overridden by specifying the initial state using
the following configuration key in the Application.xml file, as shown in the following
example:
<SharedObjManager>
<AutoCommit>false</AutoCommit>
</SharedObjManager>
SharedObject.clear()
Availability
Flash Communication Server MX 1.0.
Usage
mySO.clear()
Parameters
None.
Returns
Returns true if successful; false otherwise.
Description
Method; deletes all the properties of a single shared object and sends a clear event to all
clients that subscribe to a persistent shared object. The persistent data object is also removed
from a persistent shared object.
Example
The following example calls the clear() method on the shared object myShared:
var myShared = SharedObject.get("foo", true);
var len = myShared.clear();
See also
Application.clearSharedObjects()
SharedObject.close()
Availability
Flash Communication Server MX 1.0.
Usage
mySO.close()