Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > capabilities (System.capabilities) | |||
Object
|
+-System.capabilities
public class capabilities
extends Object
The Capabilities class determines the abilities of the system and player hosting a SWF file, which lets you tailor content for different formats. For example, the screen of a cell phone (black and white, 100 square pixels) is different than the 1000-square-pixel color PC screen. To provide appropriate content to as many users as possible, you can use the System.capabilities object to determine the type of device a user has. You can then either specify to the server to send different SWF files based on the device capabilities or tell the SWF file to alter its presentation based on the capabilities of the device.
You can send capabilities information using a GET or POST HTTP method. The following example shows a server string for a computer that has MP3 support, 1600 x 1200 pixel resolution, is running Windows XP, and Flash Player 8 (8.0.0.0):
A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t&ACC=f&PR=t&SP=t& SB=f&DEB=t&V=WIN%208%2C0%2C0%2C0&M=Macromedia%20Windows& R=1600x1200&DP=72&COL=color&AR=1.0&OS=Windows%20XP& L=en&PT=External&AVD=f&LFD=f&WD=f"
All properties of the System.capabilities object are read-only.
Availability: ActionScript 1.0; Flash Player 6
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
avHardwareDisable |
A Boolean value that specifies whether access to the user's camera and microphone has been administratively prohibited ( |
|
|
hasAccessibility |
A Boolean value that is |
|
|
Specifies if the player is running on a system that has audio capabilities. |
|
|
|
hasAudioEncoder |
Specifies if the Flash Player can encode an audio stream. |
|
|
hasEmbeddedVideo |
A Boolean value that is |
|
|
Indicates whether the system has an input method editor (IME) installed. |
|
|
|
Specifies if the system has a MP3 decoder. |
|
|
|
hasPrinting |
A Boolean value that is |
|
|
hasScreenBroadcast |
A Boolean value that is |
|
|
hasScreenPlayback |
A Boolean value that is |
|
|
hasStreamingAudio |
A Boolean value that is |
|
|
hasStreamingVideo |
A Boolean value that is |
|
|
hasVideoEncoder |
Specifies if the Flash Player can encode a video stream. |
|
|
isDebugger |
A Boolean value that indicates whether the player is an officially released version ( |
|
|
Indicates the language of the system on which the player is running. |
|
|
|
localFileReadDisable |
A Boolean value that indicates whether read access to the user's hard disk has been administratively prohibited ( |
|
|
manufacturer |
A string that indicates the manufacturer of Flash Player, in the format " |
|
|
A string that indicates the current operating system. |
|
|
|
pixelAspectRatio |
An integer that indicates the pixel aspect ratio of the screen. |
|
|
playerType |
A string that indicates the type of player. |
|
|
screenColor |
A string that indicates the screen color. |
|
|
A number that indicates the dots-per-inch (dpi) resolution of the screen, in pixels. |
|
|
|
screenResolutionX |
An integer that indicates the maximum horizontal resolution of the screen. |
|
|
screenResolutionY |
An integer that indicates the maximum vertical resolution of the screen. |
|
|
serverString |
A URL-encoded string that specifies values for each |
|
|
A string that contains the Flash Player platform and version information. |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
Methods inherited from class Object
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001498.html