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
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
System.capabilities.avHardwareDisable
System.capabilities.hasAccessibility
System.capabilities.hasAudio
System.capabilities.hasAudioEncoder
System.capabilities.hasEmbeddedVideo
System.capabilities.hasMP3
System.capabilities.hasPrinting
ActionScript Language Reference
or
HTTP method. The following
GET
POST
Description
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.
CHAPTER 2
System.capabilities object
Server
string
AVD
ACC
A
AE
EV
MP3
PR
815
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers