Packagenet.guttershark.util
Classpublic final class PlayerUtils

The PlayerUtils class provides static shortcut methods for finding things about the currently running player.



Public Methods
 MethodDefined by
  
[static] Singleton access.
PlayerUtils
  
Check whether or not the current player supports fullscreen.
PlayerUtils
  
isActiveX():Boolean
IF the player is the active x player.
PlayerUtils
  
isDebugger():Boolean
Is the current player the debugger.
PlayerUtils
  
isIDEPlayer():Boolean
If the flash player is the external player.
PlayerUtils
  
isLinux():Boolean
Check whether or not the current player is running on linux.
PlayerUtils
  
isMac():Boolean
Check whether or not the current player is running on a mac.
PlayerUtils
  
isMajorVersionOrBetter(version:Number):Boolean
Whether or not the current player is >= a major version.
PlayerUtils
  
isPC():Boolean
Check whether or not the current player is running on a pc.
PlayerUtils
  
isPlugIn():Boolean
If the player is just a regular plugin.
PlayerUtils
  
When run as a standlone (projector, or flex builder)
PlayerUtils
  
versionOfPlayer():String
Get the version of the flash player.
PlayerUtils
Public Constants
 ConstantDefined by
  AVM_VERSION : String = ""
Retrieve the ActionScript Virtual Machine Version the application is running under.
PlayerUtils
  FLASHPLAYER_VERSION : String = ""
Retrieve the FlashPlayer Version the application is running under.
PlayerUtils
  LANGUAGE : String = ""
Retrieve the FlashPlayers Localized Language Code.
PlayerUtils
Method detail
gi()method
public static function gi():PlayerUtils

Singleton access.

Returns
PlayerUtils
hasFullscreenMode()method 
public function hasFullscreenMode():Boolean

Check whether or not the current player supports fullscreen.

Returns
Boolean
isActiveX()method 
public function isActiveX():Boolean

IF the player is the active x player.

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

Is the current player the debugger.

Returns
Boolean
isIDEPlayer()method 
public function isIDEPlayer():Boolean

If the flash player is the external player.

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

Check whether or not the current player is running on linux.

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

Check whether or not the current player is running on a mac.

Returns
Boolean
isMajorVersionOrBetter()method 
public function isMajorVersionOrBetter(version:Number):Boolean

Whether or not the current player is >= a major version.

Parameters
version:Number — The major version to test for (9,8,7,etc);

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

Check whether or not the current player is running on a pc.

Returns
Boolean
isPlugIn()method 
public function isPlugIn():Boolean

If the player is just a regular plugin.

Returns
Boolean
isStandAlonePlayer()method 
public function isStandAlonePlayer():Boolean

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

Returns
Boolean
versionOfPlayer()method 
public function versionOfPlayer():String

Get the version of the flash player.

Returns
String
Constant detail
AVM_VERSIONconstant
public const AVM_VERSION:String = ""

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

FLASHPLAYER_VERSIONconstant 
public const FLASHPLAYER_VERSION:String = ""

Retrieve the FlashPlayer Version the application is running under.

LANGUAGEconstant 
public 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

.