![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 406](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553406.webp)
406
ActionScript classes
Returns
String
- A string.
Example
The following example instantiates a new
LoadVars()
object, creates two properties, and uses
toString()
to return a string containing both properties in URL encoded format:
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
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...