Packagecom.rojored.gatracking.system
Classpublic class Environment

The Environment class provides information about the system on which the SWF file is running.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
Environment(display:DisplayObject = null)
Constructor.
Environment
Public Constants
 ConstantDefined 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
Property detail
flashPlayerVersionproperty
flashPlayerVersion:String  [read-only]

Flash player version string.

Implementation
    public function get flashPlayerVersion():String
hasExternalInterfaceproperty 
hasExternalInterface:Boolean  [read-only]

Whether there is access to ExternalInterface functionality.

Implementation
    public function get hasExternalInterface():Boolean
hostnameproperty 
hostname:String  [read-only]

Hostname from where the SWF file was loaded.

Implementation
    public function get hostname():String
pathproperty 
path:String  [read-only]

Path on the server from where the SWF file was loaded.

Implementation
    public function get path():String
protocolproperty 
protocol:String  [read-only]

Protocol via which the SWF file was loaded.

Possible values for this property are:

Implementation
    public function get protocol():String
screenResolutionproperty 
screenResolution:String  [read-only]

Current screen resolution.

Implementation
    public function get screenResolution():String
Constructor detail
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.
Constant detail
PROTOCOL_FILEconstant
public static const PROTOCOL_FILE:String = "protocolFile"

Value for the protocol property when the SWF file was accessed via the filesystem.

PROTOCOL_HTTPconstant 
public static const PROTOCOL_HTTP:String = "protocolHTTP"

Value for the protocol property when the SWF file was served over HTTP.

PROTOCOL_HTTPSconstant 
public static const PROTOCOL_HTTPS:String = "protocolHTTPS"

Value for the protocol property when the SWF file was served over secure HTTP.