![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.
You can use the System.capabilities object to determine the abilities of the system and player hosting a SWF file. This allows you to 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 is an example of a server string for a device that does not have MP3 support and has a 400 x 200 pixel, 8 x 4 centimeter screen:
"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%207%2C0%2C0%2C226&M=Macromedia%20Windows&R=1152x864&DP=72&COL=color&AR=1.0&OS=Windows%20XP&L=en&PT=External&AVD=f&LFD=f"
Property |
Description |
Server string |
---|---|---|
Read-only; specifies whether the user's camera and microphone are enabled or disabled. |
|
|
Indicates whether the player is running on a system that supports communication between Flash Player and accessibility aids. |
|
|
Indicates whether the player is running on a system that has audio capabilities. |
|
|
Indicates whether the player is running on a system that can encode an audio stream, such as that coming from a microphone. |
|
|
Indicates whether the player is running on a system that supports embedded video. |
|
|
Indicates whether the player is running on a system that has an MP3 decoder. |
|
|
Indicates whether the player is running on a system that supports printing. |
|
|
Indicates whether the player supports the development of screen broadcast applications to be run through the Flash Communication Server. |
|
|
Indicates whether the player supports the playback of screen broadcast applications that are being run through the Flash Communication Server. |
|
|
Indicates whether the player can play streaming audio. |
|
|
Indicates whether the player can play streaming video. |
|
|
Indicates whether the player can encode a video stream, such as that coming from a web camera. |
|
|
Indicates whether the player is an officially released version or a special debugging version. |
|
|
Indicates the language of the system on which the player is running. |
|
|
Read-only; specifies whether the player will attempt to read anything (including the first SWF file the player launches with) from the user's hard disk. |
|
|
Indicates the manufacturer of Flash Player. |
|
|
Indicates the operating system hosting Flash Player. |
|
|
Indicates the pixel aspect ratio of the screen. |
|
|
Indicates the type of player: stand-alone, external, plug-in, or ActiveX. |
|
|
Indicates whether the screen is color, grayscale, or black and white. |
|
|
Indicates the dots-per-inch screen resolution, in pixels. |
|
|
Indicates the horizontal size of the screen. |
|
|
Indicates the vertical size of the screen. |
|
|
A URL-encoded string that specifies values for each System.capabilities property. |
n/a |
|
A string containing Flash Player version and platform information. |
|
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |