
capabilities.os Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
485
Bugs
The English language country codes (UK and US) are not properly set by all versions of
Flash Player 6; In both countries,
System.capabilities.language returns “en” and does not
include a country code.
Example
The following code loads the English or French version of a movie, depending on the
current language setting:
if (System.capabilities.language.substring(0,2) = = "en") {
trace("English language");
content_mc.loadMovie("news-english.swf");
} else if (System.capabilities.language = = "fr") {
trace("French language");
content_mc.loadMovie("news-french.swf");
}
See Also
Character Encoding,” in Chapter 4
capabilities.manufacturer Property
indicates the manufacturer of the Flash Player
Flash 6
read/write
System.capabilities.manufacturer
Description
The string manufacturer property indicates the name of the organization that created the
Flash Player. Third parties can license Macromedia’s Flash Player source code and port the
Player to new platforms or devices. Developers of ported or custom Players can provide a
custom value for the
manufacturer property. For the desktop version of the Flash Player,
the only values are “Macromedia Windows” and “Macromedia Macintosh”. Do not rely on
manufacturer to provide operating system or version ...