Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
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
Availability: ActionScript 2.0; Flash Player 7
Parameters
- Instance name of the text field to populate.
instance:Object
- Language string ID.
stringID:String
Example
The following example uses the
to populate a text field on the Stage with the
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
or
runtime"
"via ActionScript at runtime"
Availability: ActionScript 2.0; Flash Player 7
732
ActionScript classes
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
autoReplace
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
"automatically at runtime"
property and
addDelayedInstance()
string from the English XML
IDS_GREETING
"automatically at
.
valueOf
.
method
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?