SharedObject.flush
Availability
Flash Communication Server MX.
Usage
SharedObject.flush()
Parameters
None.
Returns
A Boolean value of
Description
Method; causes the server to save the current state of the shared object instance. The shared object
must have been created with the persistence option.
Example
The following example places a reference to the shared object
then locks the shared object instance so that no one can make any changes to it, and then saves
the shared object by calling
that further changes can be made.
var myShared = SharedObject.get("foo", true);
myShared.lock();
// insert code here that operates on the shared object
myShared.flush();
myShared.unlock();
SharedObject.get
Availability
Flash Communication Server MX.
Usage
SharedObject.get(name, boolPersist [, netConnection])
Parameters
Name of the shared object instance to return.
name
A Boolean value:
boolPersist
shared object. If no value is specified, the default value is
netConnection
instance. You can pass this parameter to get a reference to a shared object on another server or a
shared object that is owned by another application instance. All update notifications for the
shared object specified by the
instance notifies the local instance when a persistent shared object changes. The NetConnection
object that is used as the
SharedObject.get
state changes to connected. This parameter is optional.
Returns
A reference to a shared object instance.
if successful,
true
false
myShared.flush
for a persistent shared object;
true
A NetConnection object that represents a connection to an application
parameter are proxied to this instance, and the remote
name
parameter does not need to be connected when you call
netConnection
. The server connects to the remote shared object when the NetConnection
otherwise.
in the variable
foo
. After the shared object is saved, it is unlocked so
.
false
Server-Side Communication ActionScript
. It
myShared
for a nonpersistent
false
45
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?