Class fever.core.client.ClientContext

Description

Wrapper for Flash System.capabilities properties and more.

Uses to retrieve Flash Player version, screen resolution and client platform.

Example

   var client : ClientContext = Fever.client;
   FeverDebug.INFO( client.player );
   FeverDebug.INFO( "Flash 8 compliant : " + ( client.player.major >= 8 ) );
   		
   FeverDebug.INFO( "Is standAlone player : " + ( client.player.type == ClientPlayerType.STANDALONE ) );
   FeverDebug.INFO( "Is Windows OS : " + ( client.platform == ClientPlatform.WINDOWS ) );
   
   FeverDebug.INFO( "Screen size : " + client.screen );
 

See Also

Field Index

avHardwareDisable, hasAccessibility, hasAudio, hasMP3, hasPrinting, language, localFileReadDisable, platform, player, screen

Method Index

getInstance()

Field Detail

avHardwareDisable

public avHardwareDisable:Boolean [Read Only]
A Boolean value that specifies whether access to the user's camera and microphone has been administratively prohibited (true) or allowed (false).

hasAccessibility

public hasAccessibility:Boolean [Read Only]
A Boolean value that is true if the player is running in an environment that supports communication between Flash Player and accessibility aids; false otherwise.

hasAudio

public hasAudio:Boolean [Read Only]
Specifies if the system has audio capabilities. A Boolean value that is true if the player is running on a system that has audio capabilities; false otherwise.

hasMP3

public hasMP3:Boolean [Read Only]
Specifies if the system has a MP3 decoder. A Boolean value that is true if the player is running on a system that has an MP3 decoder; false otherwise

hasPrinting

public hasPrinting:Boolean [Read Only]
A Boolean value that is true if the player is running on a system that supports printing; false otherwise.

language

public language:String [Read Only]
Indicates the language of the system on which the player is running.

localFileReadDisable

public localFileReadDisable:Boolean [Read Only]
A Boolean value that indicates whether read access to the user's hard disk has been administratively prohibited (true) or allowed (false).

player

public player:ClientPlayer [Read Only]
Returns ClientPlayer object.

screen

public screen:ClientScreen
Returns ClientScreen object.

platform

public platform:Number [Read Only]
Returns client platform ID.

Method Detail

getInstance

static public function getInstance():ClientContext

Returns ClientContext instance.

Always return the same instance.