Flash + Multiple Languages
Flash + Multiple Languages
Out of context: Reply #1
- Started
- Last post
- 6 Responses
- unfittoprint0
//create a global lang variable
var lang:String = (lang == undefined)? "en" : lang;
you can add the lang var to the emebed swf object in a html/php file
or
within the flash file itself having 'choose language' menu to deploy the global lang var.
you then can add 'lang' as a suffix to your content loading procedures:
ie. myxml.load("xml_"+lang+".xml");
//or
myvars.load("txt_"+lang+".txt");//or even
myvars.load("script.php?lang="+l...