Packagenet.guttershark.managers
Classpublic final class PlayerManager

The PlayerManager Class provides static shortcut methods for finding things about the currently running player.



Public Methods
 MethodDefined by
  
[static] Returns true if the client flashplayer supports fullscreen mode (>=9.0.28).
PlayerManager
  
IsActiveX():Boolean
[static] IF the player is the active x player.
PlayerManager
  
isDebugger():Boolean
[static] Returns true is the swf is being viewed in the debug player.
PlayerManager
  
IsIDEPlayer():Boolean
[static] If the flash player is the external player.
PlayerManager
  
isLinux():Boolean
[static] is client a PC?
PlayerManager
  
isMac():Boolean
[static] is client a Mac?
PlayerManager
  
isMinVersion(minVersion:Number):Boolean
[static] Returns true if client flashplayer is >= the min version.
PlayerManager
  
isPC():Boolean
[static] is client a PC?
PlayerManager
  
IsPlugIn():Boolean
[static] If the player is just a regular plugin.
PlayerManager
  
[static] When run as a standlone (projector, or flex builder)
PlayerManager
  
OperatingSystem():String
[static] Get the operating system the player is running in.
PlayerManager
  
PlayerType():String
[static] The the player type string.
PlayerManager
  
VersionOfPlayer():String
[static] Get the version of the flash player.
PlayerManager
Public Constants
 ConstantDefined by
  ACTIVEX : String = "ActiveX"
[static] Active X player.
PlayerManager
  AVM_VERSION : String = ""
[static] Retrieve the ActionScript Virtual Machine Version the application is running under.
PlayerManager
  EXTERNAL : String = "External"
[static] External player.
PlayerManager
  FLASHPLAYER_VERSION : String = ""
[static] Retrieve the FlashPlayer Version the application is running under.
PlayerManager
  LANGUAGE : String = ""
[static] Retrieve the FlashPlayers Localized Language Code.
PlayerManager
  LINUX : String = "linux"
[static] The operating system type for linux.
PlayerManager
  MAC : String = "mac"
[static] The operating system type for mac.
PlayerManager
  PLUGIN : String = "PlugIn"
[static] Regular Plugin.
PlayerManager
  STANDALONE : String = "StandAlone"
[static] Standalone player.
PlayerManager
  WINDOWS : String = "windows"
[static] The operating system type for windows.
PlayerManager
Method detail
hasFullscreenMode()method
public static function hasFullscreenMode():Boolean

Returns true if the client flashplayer supports fullscreen mode (>=9.0.28).

Returns
Boolean
IsActiveX()method 
public static function IsActiveX():Boolean

IF the player is the active x player.

Returns
Boolean
isDebugger()method 
public static function isDebugger():Boolean

Returns true is the swf is being viewed in the debug player.

Returns
Boolean
IsIDEPlayer()method 
public static function IsIDEPlayer():Boolean

If the flash player is the external player.

Returns
Boolean
isLinux()method 
public static function isLinux():Boolean

is client a PC?

Returns
Boolean — Boolean
isMac()method 
public static function isMac():Boolean

is client a Mac?

Returns
Boolean — Boolean
isMinVersion()method 
public static function isMinVersion(minVersion:Number):Boolean

Returns true if client flashplayer is >= the min version.

Parameters
minVersion:Number

Returns
Boolean
isPC()method 
public static function isPC():Boolean

is client a PC?

Returns
Boolean — Boolean
IsPlugIn()method 
public static function IsPlugIn():Boolean

If the player is just a regular plugin.

Returns
Boolean
IsStandAlonePlayer()method 
public static function IsStandAlonePlayer():Boolean

When run as a standlone (projector, or flex builder)

Returns
Boolean
OperatingSystem()method 
public static function OperatingSystem():String

Get the operating system the player is running in.

Returns
String — String A string representation of the OS.

See also

net.guttershark.managers.PlayerManager.WINDOWS
net.guttershark.managers.PlayerManager.MAC
net.guttershark.managers.PlayerManager.LINUX
PlayerType()method 
public static function PlayerType():String

The the player type string.

Returns
String — String The player type string returned from Capabilities.playerType.
VersionOfPlayer()method 
public static function VersionOfPlayer():String

Get the version of the flash player.

Returns
String
Constant detail
ACTIVEXconstant
public static const ACTIVEX:String = "ActiveX"

Active X player.

AVM_VERSIONconstant 
public static const AVM_VERSION:String = ""

Retrieve the ActionScript Virtual Machine Version the application is running under.

EXTERNALconstant 
public static const EXTERNAL:String = "External"

External player. (Flash IDE)

FLASHPLAYER_VERSIONconstant 
public static const FLASHPLAYER_VERSION:String = ""

Retrieve the FlashPlayer Version the application is running under.

LANGUAGEconstant 
public static const LANGUAGE:String = ""

Retrieve the FlashPlayers Localized Language Code.

e.g. cs,da,nl,en,fi,fr,de,hu,it,ja,ko,no,xu,pl,pt,ru,zh-CN,es,sv,zh-TW,tr

.
LINUXconstant 
public static const LINUX:String = "linux"

The operating system type for linux.

MACconstant 
public static const MAC:String = "mac"

The operating system type for mac.

PLUGINconstant 
public static const PLUGIN:String = "PlugIn"

Regular Plugin.

STANDALONEconstant 
public static const STANDALONE:String = "StandAlone"

Standalone player.

WINDOWSconstant 
public static const WINDOWS:String = "windows"

The operating system type for windows.