User Guide

128 Server-Side ActionScript Language Reference
SharedObject.isDirty
Availability
Flash Media Server 2.
Usage
mySO.isDirty
Description
Property (read-only); a Boolean value indicating whether a persistent shared object has been
modified since the last time it was stored (
true) or not (false).
The
SharedObject.commit() method stores shared objects with an isDirty property that is
true.
This property is always
false for non-persistent shared objects.
Example
The following example saves the so shared object if it has been changed:
var so = SharedObject.get("foo", true);
if (so.isDirty){
SharedObject.commit(so.name);
}
SharedObject.lock()
Availability
Flash Communication Server MX 1.0.
Usage
mySO.lock()
Parameters
None.
Returns
An integer indicating the lock count: 0 or greater indicates success; -1 indicates failure. For
proxied shared objects, always returns -1.