S > System.capabilities (object) |
![]() ![]() ![]() |
System.capabilities (object)
You can use the System.capabilites object to determine the abilities of the system and player hosting a Flash movie. This allows you to taylor 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 Capabilities object to determine the type of device a user has. You can then either specify to the server to send different SWFs based on the device capabilites, or tell the Flash movie 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&MP3=f&AE=gsm&VE=h11&ACC=f&V=WIN%206%2C0%2C0%2C129&M=Macromedia%WINDOWS&R=400x200&DP=72&COL=color&AR=1.0&OS=WINDOWS%2000&L=en-US"
The Capabilities object is available in the Flash Player 6.
You must access all properties of the Capabilities object through the System.capabilities object.
Property Description Indicates the supported audio encoders. Indicates whether the device meets accessibility standards. Indicates whether the device has audio capabilities. Indicates whether the device has an MP3 decoder. Indicates the language the Flash Player supports. Indicates the manufacturer of the Flash Player. Indicates the operating system hosting the Flash Player. Indicates the pixel aspect ration of the screen. Indicates whether the screen is color, black and white, or grayscale. Indicates the screen dots per inch. Indicates the horizontal size of the screen. Indicates the vertical size of the screen. Indicates the lowest supported Flash Player version. Indicates the supported video encoders.
Property summary for the Capabilities object
![]() ![]() ![]() |