Introduction to Flash Lite 2.x ActionScript |
|
|
|
| Unsupported and Partially Supported Classes > capabilities (System.capabilities) class | |||
The System.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.
The following table lists the properties that are not supported by the System.capabilites class when using ActionScript for Flash Lite 2.x.
|
Property |
Description |
|---|---|
hasIME
|
Indicates whether the system has an input method editor (IME) installed. |
manufacturer
|
A string that indicates the manufacturer of Flash Player, in the format "Adobe OSName" (OSName could be "Windows", "Macintosh", "Linux", or "Other OS Name"). |
pixelAspectRatio
|
Indicates the pixel aspect ratio of the screen. |
playerType
|
Indicates the type of player: stand-alone, external, plug-in, or ActiveX. |
screenColor
|
Indicates whether the screen is color, grayscale, or black and white. |
screenDPI
|
Indicates the screen resolution, in pixels (such as dpi). |
serverString
|
A URL-encoded string that specifies values for each |
The following table lists properties that are extensions to the System.capabilites class for use with ActionScript for Flash Lite 2.x.
|
Property |
Description |
|---|---|
hasCompoundSound
|
A read-only Boolean value that is |
hasEmail
|
A read-only Boolean value that is |
hasMMS
|
A read-only Boolean value that is |
hasSMS
|
A read-only value whose variable |
hasMFI
|
A read-only Boolean value that is |
hasMIDI
|
A read-only Boolean value that is |
hasSMAF
|
A read-only Boolean value that is |
hasDataLoading
|
A read-only Boolean value that is |
has4WayKeyAS
|
A read-only Boolean value that is If the value of this variable is |
hasMouse
|
A read-only Boolean value that is |
hasMappableSoftKeys
|
Allows user to set soft-key values and handle events from those soft keys. |
hasStylus
|
A read-only Boolean value that is The |
hasCMIDI
|
A read-only Boolean value that is |
hasXMLSocket
|
(added in Flash Lite 2.1) Indicates whether the host application supports XML sockets. |
softKeyCount
|
A number specifying the number of soft keys that the platform supports. |
hasSharedObjects
|
A read-only Boolean value that is |
hasQWERTYKeyboard
|
A read-only Boolean value that is |
audioMIMETypes
|
A read-only property that contains an array of MIME types that the device's audio codecs support, and that can be used by the ActionScript Sound object. |
imageMIMETypes
|
A read-only property that contains an array of MIME types that the device's image codecs support and that can be used by the |
videoMIMETypes
|
A read-only property that contains an array of MIME types that the device's video codecs support and that can be used by the ActionScript Video object. |
MIMETypes
|
A read-only property that contains an array of all the MIME types that the Sound and Video objects support and the |
|
|
|
|