User Guide

SharedObject.clear() 399
If the user selects None (moves the slider all the way to the left), all SharedObject.flush()
commands issued for the object return
"pending", and the player asks the user if additional
disk space can be allotted to make room for the object.
If the user selects 10K, 100K, 1 MB, or 10 MB, objects are saved locally and
SharedObject.flush() returns true if the object fits within the specified amount of space. If
more space is needed,
SharedObject.flush() returns "pending", and the player asks the
user if additional disk space can be allotted to make room for the object.
Additionally, if the user selects a value that is less than the amount of disk space currently being
used for locally persistent data, the player warns the user that any locally saved shared objects will
be deleted.
Method summary for the SharedObject class
Property summary for the SharedObject class
Event handler summary for the SharedObject class
Constructor for the SharedObject class
For information on creating local shared objects, see
SharedObject.getLocal().
SharedObject.clear()
Availability
Flash Player 7.
Usage
my_so.clear() : Void
Method Description
SharedObject.clear()
Purges all the data from the shared object and deletes the shared
object from the disk.
SharedObject.flush()
Immediately writes a locally persistent shared object to a local file.
SharedObject.getLocal()
Returns a reference to a locally persistent shared object that is
available only to the current client.
SharedObject.getSize()
Gets the current size of the shared object, in bytes.
Property Description
SharedObject.data
The collection of attributes assigned to the data property of the
object; these attributes can be shared and/or stored.
Event handler Description
SharedObject.onStatus
Invoked every time an error, warning, or informational note is
posted for a shared object.