EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Adddelayedinstance (Locale.adddelayedinstance Method); Addxmlpath (Locale.addxmlpath Method)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
732 ActionScript classes
Methods inherited from class Object
addDelayedInstance (Locale.addDelayedInstance
method)
public static addDelayedInstance(instance:Object, stringID:String) : Void
Adds the {instance, string ID} pair into the internal array for later use. This is primarily used
by Flash when the strings replacement method is
"automatically at runtime".
Availability: ActionScript 2.0; Flash Player 7
Parameters
instance:Object - Instance name of the text field to populate.
stringID:String - Language string ID.
Example
The following example uses the
autoReplace property and addDelayedInstance() method
to populate a text field on the Stage with the
IDS_GREETING string from the English XML
language file.
import mx.lang.Locale;
greeting_txt.autoSize = "left";
Locale.autoReplace = true;
Locale.addDelayedInstance(greeting_txt, "IDS_GREETING");
Locale.loadLanguageXML("en");
addXMLPath (Locale.addXMLPath method)
public static addXMLPath(langCode:String, path:String) : Void
Adds the {languageCode and languagePath} pair into the internal array for later use. This is
primarily used by Flash when the strings replacement method is
"automatically at
runtime"
or "via ActionScript at runtime".
Availability: ActionScript 2.0; Flash Player 7
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)

Table of Contents

Related product manuals