all groups > flash actionscript > november 2005 >
You're in the

flash actionscript

group:

load multilingual text


load multilingual text Vox
11/30/2005 10:33:16 PM
flash actionscript:
Hello everyone. A client of mine would like me to add an option to his site so
a user has the option to select what language they would like to view the site
in. Im reading all the help pages but always feel its good to get input on
everyones experience with this. The whole site already loads all text from an
external html file, but im hoping that there is a way that once i have all the
languages organized in their own external file, that flash will execute like
this: user selects spanish.... spanish selected....load spanish text file

something like that..

i hope i explained it well
Re: load multilingual text bderber
11/30/2005 11:20:33 PM
Vox:

I do this quite simply with a text file for each language. The text is
unicode and the variables for each line are identically named if it is spanish,
french, english, etc. Whe the user selects a language (for me by a movie-clip
button), the language file is loaded into a LoadVar object. In the main
program, a reference to "Language_txt.Line15" (as this Loadvar object is at the
_root) will return whatever &Line15 was in the text file.

Does this make sense?

bob
Re: load multilingual text Vox
12/2/2005 12:00:00 AM
AddThis Social Bookmark Button