Macromedia flash media server 2-client-side actionscript language reference for flash media server 2 ユーザーズマニュアル
116
Client-Side ActionScript Language Reference
The following list summarizes how the user’s disk space choices interact with remote shared
objects from a specified domain that request local persistence:
objects from a specified domain that request local persistence:
■
If the user selects Never, objects are never saved locally, and all
commands issued for the object return
false
.
■
If the user selects Unlimited (by moving the slider all the way to the right), objects are
saved locally up to available disk space.
saved locally up to available disk space.
■
If the user selects None (by moving the slider all the way to the left), all
commands issued for the object return
"pending"
and cause
Flash to ask the user if additional disk space can be allotted to make room for the object.
■
If the user selects 10 KB, 100 KB, 1 MB, or 10 MB, objects are saved locally and
returns
true
if the object fits within the specified amount of
space. If more space is needed,
returns
"pending"
, and Flash
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, Flash warns the user that any shared objects that have
already been saved locally will be deleted.
being used for locally persistent data, Flash warns the user that any shared objects that have
already been saved locally will be deleted.
Method summary for the SharedObject class
NO
TE
There is no size limit when Flash Player runs from the authoring environment; the limit
applies only to the stand-alone player.
applies only to the stand-alone player.
Method
Description
Purges all the data from the shared object and deletes the
shared object from the disk.
shared object from the disk.
Closes the connection between a remote shared object and
the Flash Media Server.
the Flash Media Server.
Connects to a remote shared object on the Flash Media
Server.
Server.
Immediately writes a locally persistent shared object to a local
file.
file.
Returns a reference to a locally persistent shared object that is
available only to the current client.
available only to the current client.
Returns a reference to a shared object that is available to
multiple clients by means of the Flash Media Server.
multiple clients by means of the Flash Media Server.
Gets the current size of the shared object, in bytes.