MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 620

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

To create "private" values for a shared object—values that are available only to the client instance
while the object is in use and are not stored with the object when it is closed—create properties
that are not named
so.favoriteColor = "blue";
so.favoriteNightClub = "The Bluenote Tavern";
so.favoriteSong = "My World is Blue";
Example
The following example sets the current stream to the user's selection.
curStream = _root.so.data.msgList[selected].streamName;
See also
Sound class
SharedObject.flush()
Availability
Flash Player 6.
Usage
myLocalSharedObject.flush([minimumDiskSpace])
Parameters
minimumDiskSpace
for this object. The default value is 0.
Returns
A Boolean value of
If the user has permitted local information storage for objects from this domain, and the
amount of space allotted is sufficient to store the object, this method returns
passed a value for
that value for
If the user has permitted local information storage for objects from this domain, but the
amount of space allotted is not sufficient to store the object, this method returns
If the user has permanently denied local information storage for objects from this domain, or if
Flash is unable to save the object for any reason, this method returns
Description
Method; immediately writes a locally persistent shared object to a local file. If you don't use this
method, Flash writes the shared object to a file when the shared object session ends—that is,
when the SWF file is closed, when the shared object is garbage-collected because it no longer has
any references to it, or when you call
620
Chapter 12: ActionScript Dictionary
to store them, as shown in the following example.
data
An optional integer specifying the number of bytes that must be allotted
or
, or a string value of
true
false
minimumDiskSpace
to be returned).
true
SharedObject.data
"pending"
, the amount of space allotted must be at least equal to
.
.
. (If you have
true
"pending"
.
false
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents