SharedObject 1089
If you publish SWF file content to be played back as local files (either locally installed SWF
files or projectors [EXE]), and you need to access a specific shared object from more than one
local SWF file, be aware that for local files, two different locations may be used to store shared
objects. The domain that is used depends on the security permissions granted to the local file
that created the shared object. Local files can have three different levels of permissions: 1)
access to the local filesystem only, 2) access to the network only, or 3) access to both the
network and the local filesystem. Local files with access to the local filesystem (either 1 or 3)
store their shared objects in one location. Local files with no access to the local filesystem (2)
store their shared objects in another location. For more information, see the following:
■
Chapter 17, "Understanding Security," in
Learning ActionScript 2.0 in Flash
■
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
■
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
Availability:
ActionScript 1.0; Flash Player 6
Parameters
name
:String
- A string that represents the name of the object. The name can include forward
slashes (
/
); for example,
work/addresses
is a legal name. Spaces are not allowed in a shared
object name, nor are the following characters:
~ % & \ ; : " ' , < > ? #
localPath
:String
[optional] - A string that specifies the full or partial path to the SWF file
that created the shared object, and that determines where the shared object is stored locally.
The default value is the full path.
secure
:Boolean
[optional] - (Flash Player 8 only) Determines whether access to this shared
object is restricted to SWF files that are delivered over an HTTPS connection. Assuming that
your SWF file is delivered over HTTPS:
■
If this parameter is set to
true
, Flash Player creates a 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()
with the
secure
parameter set to
true
.
■
If this parameter is set to
false
, Flash Player creates a new shared object or 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.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...