User Guide
SharedObject class 121
Parameters
None.
Returns
Nothing.
Description
Method; detaches a reference from a shared object. A call to the SharedObject.get()
method returns a reference to a shared object instance. The reference is valid until the variable
that holds the reference is no longer in use and the script is garbage-collected. To destroy a
reference immediately, you can call
SharedObject.close(). You can use
SharedObject.close() when you don’t want to proxy a shared object any longer.
Example
In the following example, mySO is attached as a reference to shared object foo. When you call
mySO.close you detach the reference mySO from the shared object foo.
mySO = SharedObject.get("foo");
// Insert code here.
mySO.close();
See also
SharedObject.get()
SharedObject.commit()
Availability
Flash Media Server 2.
Usage
SharedObject.commit([name])
Parameters
name A string indicating the name of the persistent shared object instance to store. If no
name is specified or an empty string is passed, all persistent shared objects are stored. This
parameter is optional.
Returns
A Boolean value indicating success (true) or failure (false).