Packageflash.system
Classpublic final class Security
InheritanceSecurity Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The URLRequest class captures all of the information in a single HTTP request. URLRequest objects are passed to the load() methods of the Loader, URLStream, and URLLoader classes, and to other loading operations, to initiate URL downloads. They are also passed to the upload() and download() methods of the FileReference class.



Public Properties
 PropertyDefined By
  sandboxType : String
[static] Indicates the type of security sandbox in which the calling file is operating.
Security
Public Methods
 MethodDefined By
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
  APPLICATION : String = "application"
[static] The file is running in an AIR application, and it was installed with the package (the AIR file) for that application.
Security
 Inheritedlength : int = 1
[static]
length
  LOCAL_TRUSTED : String = "localTrusted"
[static] The file is a local file and has been trusted by the user, using either the Flash Player Settings Manager or a FlashPlayerTrust configuration file.
Security
  LOCAL_WITH_FILE : String = "localWithFile"
[static] The file is a local file, has not been trusted by the user, and it is not a SWF file that was published with a networking designation.
Security
  LOCAL_WITH_NETWORK : String = "localWithNetwork"
[static] The file is a local file, has not been trusted by the user, and it is a SWF file that was published with a networking designation.
Security
  REMOTE : String = "remote"
[static] The file is from an Internet URL and operates under domain-based sandbox rules.
Security
Property Detail
sandboxTypeproperty
sandboxType:String

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Indicates the type of security sandbox in which the calling file is operating.

Security.sandboxType has one of the following values:

For more information related to security, see the Flash Player Developer Center Topic: Security.


Implementation
    public static function get sandboxType():String
    public static function set sandboxType(value:String):void
Constant Detail
APPLICATIONConstant
public static const APPLICATION:String = "application"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The file is running in an AIR application, and it was installed with the package (the AIR file) for that application. This content is included in the AIR application resource directory (where the application content is installed).

LOCAL_TRUSTEDConstant 
public static const LOCAL_TRUSTED:String = "localTrusted"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The file is a local file and has been trusted by the user, using either the Flash Player Settings Manager or a FlashPlayerTrust configuration file. The file can read from local data sources and communicate with the Internet.

LOCAL_WITH_FILEConstant 
public static const LOCAL_WITH_FILE:String = "localWithFile"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The file is a local file, has not been trusted by the user, and it is not a SWF file that was published with a networking designation. In Adobe AIR, the local file is not in the application resource directory; such files are put in the application security sandbox. The file may read from local data sources but may not communicate with the Internet.

LOCAL_WITH_NETWORKConstant 
public static const LOCAL_WITH_NETWORK:String = "localWithNetwork"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The file is a local file, has not been trusted by the user, and it is a SWF file that was published with a networking designation. The file can communicate with the Internet but cannot read from local data sources.

REMOTEConstant 
public static const REMOTE:String = "remote"

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The file is from an Internet URL and operates under domain-based sandbox rules.