capabilities.os Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
capabilities.os Property Flash 6

indicates the operating system on which the Player is running read/write
System.capabilities.os

Description

The string os property indicates the name of the operating system on which the Player is running. It provides more granular information than the getVersion( ) function, which does not distinguish between OS varieties such as "Windows 2000" and "Windows 98". The current values for os on Windows are:

Windows XP
Windows 2000
Windows NT
Windows 98/ME
Windows 95
Windows CE

On Macintosh, os returns "MacOS x.y.z", where x is the major release, y is the minor release, and z is the dot release. For example:

MacOS 9.2.1
MacOS 10.1.4

The corresponding server string for os is OS, with the preceding values listed for Windows or Macintosh or determined by individual manufacturers. See capabilities.serverString for details.

Bugs

Macromedia's documentation for Flash MX incorrectly claims that os defaults to an empty string. It defaults to the value appropriate for the OS under which the Player is running.

See Also

capabilities.version, capabilities.manufacturer



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net