User Guide

SharedObject 1083
Method summary
Methods inherited from class Object
clear (SharedObject.clear method)
public clear() : Void
Purges all the data from the shared object and deletes the shared object from the disk. The
reference to
my_so is still active, and my_so is now empty.
Availability: ActionScript 1.0; Flash Player 7
Example
The following example sets data in the shared object, and then empties all of the data from the
shared object.
var my_so:SharedObject = SharedObject.getLocal("superfoo");
my_so.data.name = "Hector";
trace("before my_so.clear():");
for (var prop in my_so.data) {
trace("\t"+prop);
}
trace("");
my_so.clear();
trace("after my_so.clear():");
Modifiers Signature Description
clear() : Void Purges all the data from the shared object and deletes
the shared object from the disk.
flush([minDiskSpace:
Number]) : Object
Immediately writes a locally persistent shared object
to a local file.
static getLocal(name:String
,
[localPath:String],
[secure:Boolean]) :
SharedObject
Returns a reference to a locally persistent shared
object that is available only to the current client.
getSize() : Number Gets the current size of the shared object, in bytes.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)