User Guide

Security sandboxes 463
SWF files in the local-with-networking sandbox cannot load SWF files in the local-with-
filesystem sandbox. SWF files in the local-with-filesystem sandbox cannot load SWF files in
the local-with-networking sandbox.
Setting the sandbox type of local SWF files
You can configure a SWF file for the local-with-filesystem sandbox or the local-with-
networking sandbox by setting the use-network flag in the Flex compiler. For more
information, see About the application compiler options” on page 196 in Building and
Deploying Flex Applications.
An end user or the administrator of a computer can specify that a local SWF file is trusted,
allowing it to load data from all domains, both local and network. This is specified in the
Global Flash Player Trust and User Flash Player Trust directories. For more information, see
Administrative user controls” on page 452 and “User controls” on page 454.
For more information on local sandboxes, see “Local sandboxes” on page 462.
The Security.sandboxType property
An author of a SWF file can use the read-only static Security.sandboxType property to
determine the type of sandbox to which Flash Player has assigned the SWF file. The Security
class includes constants that represent possible values of the
Security.sandboxType
property, as follows:
Security.REMOTE—The SWF file is from an Internet URL, and operates under domain-
based sandbox rules.
Security.LOCAL_WITH_FILE—The SWF file is a local file, but it has not been trusted by
the user and was not published with a networking designation. The SWF file can read
from local data sources but cannot communicate with the Internet.
Security.LOCAL_WITH_NETWORK—The SWF file is a local file and has not been trusted
by the user, but it was published with a networking designation. The SWF can
communicate with the Internet but cannot read from local data sources.
Security.LOCAL_TRUSTED—The SWF file is a local file and has been trusted by the user,
using either the Settings Manager or a Flash Player trust configuration file. The SWF file
can both read from local data sources and communicate with the Internet.