Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 393

Programming actionscript 3.0
Table of Contents

Advertisement

{
trace(i + ":\t" + so.data[i]);
}
Creating a secure SharedObject
When you create either a local or remote SharedObject using
there is an optional parameter named
object is restricted to SWF files that are delivered over an HTTPS connection. If this
parameter is set to
true
new secure shared object or gets a reference to an existing secure shared object. This secure
shared object can be read from or written to only by SWF files delivered over HTTPS that call
SharedObject.getLocal()
and your SWF file is delivered over HTTPS, Flash Player creates a new shared object or
false
gets a reference to an existing shared object.
This shared object can be read from or written to by SWF files delivered over non-HTTPS
connections. If your SWF file is delivered over a non-HTTPS connection and you try to set
this parameter to
true
created secure shared object) fails, an error is thrown, and the shared object is set to
you attempt to run the following snippet from a non-HTTPS connection, the
SharedObject.getLocal()
try
{
var so:SharedObject = SharedObject.getLocal("contactManager", null,
true);
}
catch (error:Error)
{
trace("Unable to create SharedObject.");
}
Regardless of the value of this parameter, the created shared objects count toward the total
amount of disk space allowed for a domain.
secure
and your SWF file is delivered over HTTPS, Flash Player creates a
with the secure parameter set to
, the creation of a new shared object (or the access of a previously
method will throw an error, as shown in the following snippet:
getLocal()
that determines whether access to this shared
. If this parameter is set to
true
or
,
getRemote()
. If
null
Storing local data
393

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents