Server-Side Communication ActionScript > SharedObject.close |
SharedObject.close
Availability
Flash Communication Server MX.
Usage
SharedObject.close()
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 this 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