Represents the type of security sandbox in which the called file is running.
Security.sandboxType
has one of the following values:
remote
( Security.REMOTE
): This file is from the Internet URL and runs under a domain-based sandbox rule.
localWithFile
( Security.LOCAL_WITH_FILE
): This file is a local file that has not been trusted by the user and is not a SWF file that is published using the network name. This file can read data from a local data source, but it cannot communicate with the Internet.
localWithNetwork
( Security.LOCAL_WITH_NETWORK
): This SWF file is a local file that has not been trusted by the user and has been published using the network name. This SWF file can communicate with the Internet, but it cannot read data from a local data source.
localTrusted
( Security.LOCAL_TRUSTED
): This file is a local file, and the user has set it to a trusted file using the Flash Player Settings Manager or the Flashplayertrust configuration file. This file can either read data from a local data source or communicate with the Internet.
application
( Security.APPLICATION
): This file runs in an air application and is installed with the application's package (AIR file). By default, files in the Air application sandbox can access any file in any domain across scripts (although files outside the air application sandbox are not allowed to access air files across scripts). By default, files in the AIR application sandbox can load content and data from any domain.
Usage:
if "Application" ) { //air program }
[ActionScript 3.0] Security sandbox type Sandboxtype, judging whether the current program is air or Web program