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)
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...