736
ActionScript classes
Example
This example shows how to use the
initialize()
method to automatically populate the
greeting_txt
text field on the Stage with the user's current OS language. Instead of using
the
initialize()
method directly, use the string replacement method of
"automatically
at runtime"
.
import mx.lang.Locale;
trace(System.capabilities.language);
Locale.autoReplace = true;
Locale.addDelayedInstance(greeting_txt, "IDS_GREETING");
Locale.initialize();
languageCodeArray (Locale.languageCodeArray
property)
public static languageCodeArray : Array [read-only]
An array containing language codes for the languages that have been specified or loaded into
the FLA file. The language codes are not sorted alphabetically.
Availability:
ActionScript 2.0; Flash Player 8
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...