Package | com.rojored.gatracking.system |
Class | public class Environment |
Environment
class provides information about the system
on which the SWF file is running.
Property | Defined by | ||
---|---|---|---|
flashPlayerVersion : String [read-only]
Flash player version string.
| Environment | ||
hasExternalInterface : Boolean [read-only]
Whether there is access to ExternalInterface functionality.
| Environment | ||
hostname : String [read-only]
Hostname from where the SWF file was loaded.
| Environment | ||
path : String [read-only]
Path on the server from where the SWF file was loaded.
| Environment | ||
protocol : String [read-only]
Protocol via which the SWF file was loaded.
| Environment | ||
screenResolution : String [read-only]
Current screen resolution.
| Environment |
Method | Defined by | ||
---|---|---|---|
Environment(display:DisplayObject = null)
Constructor.
| Environment |
Constant | Defined by | ||
---|---|---|---|
PROTOCOL_FILE : String = "protocolFile" [static]
Value for the protocol property when the SWF file was accessed via the
filesystem.
| Environment | ||
PROTOCOL_HTTP : String = "protocolHTTP" [static]
Value for the protocol property when the SWF file was served over HTTP.
| Environment | ||
PROTOCOL_HTTPS : String = "protocolHTTPS" [static]
Value for the protocol property when the SWF file was served over secure
HTTP.
| Environment |
flashPlayerVersion | property |
flashPlayerVersion:String
[read-only]Flash player version string.
Implementation public function get flashPlayerVersion():String
hasExternalInterface | property |
hasExternalInterface:Boolean
[read-only]Whether there is access to ExternalInterface functionality.
Implementation public function get hasExternalInterface():Boolean
hostname | property |
hostname:String
[read-only]Hostname from where the SWF file was loaded.
Implementation public function get hostname():String
path | property |
path:String
[read-only]Path on the server from where the SWF file was loaded.
Implementation public function get path():String
protocol | property |
protocol:String
[read-only]Protocol via which the SWF file was loaded.
Possible values for this property are:
public function get protocol():String
screenResolution | property |
screenResolution:String
[read-only]Current screen resolution.
Implementation public function get screenResolution():String
Environment | () | constructor |
public function Environment(display:DisplayObject = null)
Constructor.
Creates a new Environment
instance, using the provided
DisplayObject
to get the URL from where the SWF file was
served.
Parameters
display:DisplayObject (default = null ) — DisplayObject instance added to the SWF
file display list. If this parameter is not provided then the current
URL will be gathered via ExternalInterface .
|
PROTOCOL_FILE | constant |
public static const PROTOCOL_FILE:String = "protocolFile"
Value for the protocol property when the SWF file was accessed via the filesystem.
PROTOCOL_HTTP | constant |
public static const PROTOCOL_HTTP:String = "protocolHTTP"
Value for the protocol property when the SWF file was served over HTTP.
PROTOCOL_HTTPS | constant |
public static const PROTOCOL_HTTPS:String = "protocolHTTPS"
Value for the protocol property when the SWF file was served over secure HTTP.