Parameters
None.
Returns
Returns
if successful;
true
Description
Method; deletes all properties and sends a "clear" event to all clients that subscribe to a persistent
shared object. The persistent data object is also removed from persistent shared object. You can
use
SharedObject.clear
is invoked. You can use
anymore and want to remove it from the server completely. This method lets you create shared
objects that persist only for a specified time.
Example
The following example calls the
var myShared = SharedObject.get("foo", true);
var len = myShared.clear();
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
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
don't want to proxy a shared object any longer.
Example
In this example,
mySO
you detach the reference
mySO = SharedObject.get("foo");
// insert code here
mySO.close();
See also
SharedObject.get
44
otherwise.
false
to detach from a shared object immediately after
SharedObject.clear
method on the shared object
clear
SharedObject.close
is attached as a reference to shared object
from the shared object
mySO
when you do not want to use a shared object
myShared
SharedObject.get
. You can use
SharedObject.close
. When you call
foo
.
foo
SharedObject.get
:
method
when you
mySO.close
Need help?
Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?