Locale (Mx.lang.locale) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Returns
- A string.
String
Example
The following example instantiates a new
to return a string containing both properties in URL encoded format:
toString()
var my_lv:LoadVars = new LoadVars();
my_lv.name = "Gary";
my_lv.age = 26;
trace (my_lv.toString()); //output: age=26&name=Gary

Locale (mx.lang.Locale)

Object
|
+-mx.lang.Locale
public class Locale
extends
Object
The mx.lang.Locale class allows you to control how multilanguage text is displayed in a SWF
file. The Flash Strings Panel allows you to use string IDs instead of string literals in dynamic
text fields. This allows you to create a SWF file that displays text loaded from a language-
specific XML file. The XML file must use the XML Localization Interchange File
Format(XLIFF). There are three ways to display the language-specific strings contained in the
XLIFF files:
"automatically at runtime" -- Flash Player replaces string IDs with strings from the XML
file matching the default system language code returned by System.capabilities.language.
"manually using stage language" -- String IDs are replaced by strings at compile-time and
cannot be changed by Flash Player.
"via ActionScript at runtime" -- String ID replacement is controlled using ActionScript at
runtime. This option gives you control over both the timing and language of string ID
replacement.
You can use the properties and methods of this class when you want to replace the string IDs
"via ActionScript at runtime."
All of the properties and methods available are static, which means that they are accessed
through the mx.lang.Locale class itself rather than through an instance of the class.
Availability: ActionScript 2.0; Flash Lite 2.0
406
ActionScript classes
object, creates two properties, and uses
LoadVars()

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents