Description
Method (static); stores either a specific persistent shared object instance or all persistent shared
object instances with an
SharedObject.autoCommit
is stored locally.
Example
The following code commits all dirty shared objects to local storage when the application
stops:
application.onAppStop = function (info){
// Insert code here.
SharedObject.commit();
}
SharedObject.flush()
Availability
Flash Communication Server MX 1.0.
Usage
mySO.flush()
Parameters
None.
Returns
A Boolean value of
true
Description
Method; saves the current state of a persistent shared object.
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
unlocked so 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();
122
Server-Side ActionScript Language Reference
property whose value is
isDirty
property is
false
if successful,
otherwise.
false
myShared.flush()
. Use this method if the
true
and you need to manage when a shared object
in the variable
foo
. After the shared object is saved, it is
. It
myShared
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?