User Guide

System.capabilities object 427
System.capabilities object
Availability
Flash Player 6.
Description
You can use the System.capabilities object to determine 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 7 (7.0.19.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%207%2C0%2
C19%2C0&M=Macromedia%20Windows&R=1600x1200&DP=72&COL=color&AR=1.0&OS=Window
s%20XP&L=en&PT=External&AVD=f&LFD=f&WD=f"
Property summary for the System.capabilities object
All properties of the System.capabilities object are read-only.
Property Description Server
string
System.capabilities.avHardwareDisable
Specifies whether the user’s camera and
microphone are enabled or disabled.
AVD
System.capabilities.hasAccessibility
Indicates whether the player is running on a
system that supports communication
between Flash Player and accessibility aids.
ACC
System.capabilities.hasAudio
Indicates whether the player is running on a
system that has audio capabilities.
A
System.capabilities.hasAudioEncoder
Indicates whether the player is running on a
system that can encode an audio stream,
such as that coming from a microphone.
AE
System.capabilities.hasEmbeddedVideo
Indicates whether the player is running on a
system that supports embedded video.
EV
System.capabilities.hasMP3
Indicates whether the player is running on a
system that has an MP3 decoder.
MP3
System.capabilities.hasPrinting
Indicates whether the player is running on a
system that supports printing.
PR
CHAPTER 6
ActionScript Core Classes